update to recent goutil split

This commit is contained in:
gutmet 2020-10-11 13:35:13 +02:00
parent b5eeade846
commit 7795d055b1
11 changed files with 19 additions and 16 deletions

View File

@ -3,7 +3,7 @@ package blog
import (
"bytes"
"fmt"
"git.gutmet.org/goutil.git"
goutil "git.gutmet.org/goutil.git/misc"
. "git.gutmet.org/wombat.git/templatestructures"
"math"
"os"

View File

@ -2,7 +2,7 @@ package converter
import (
"fmt"
"git.gutmet.org/goutil.git"
goutil "git.gutmet.org/goutil.git/misc"
"github.com/russross/blackfriday/v2"
"os"
"sync"

View File

@ -4,7 +4,7 @@ import (
"flag"
"fmt"
"git.gutmet.org/finstr.git"
"git.gutmet.org/goutil.git"
goutil "git.gutmet.org/goutil.git/misc"
"path/filepath"
)

View File

@ -4,7 +4,7 @@ import (
"errors"
"flag"
finstr "git.gutmet.org/finstr.git/initer"
"git.gutmet.org/goutil.git"
goutil "git.gutmet.org/goutil.git/misc"
)
func New(fl finstr.IniterFlags) error {

View File

@ -3,7 +3,8 @@ package generate
import (
"flag"
"fmt"
"git.gutmet.org/goutil.git"
"git.gutmet.org/goutil.git/copy"
goutil "git.gutmet.org/goutil.git/misc"
"git.gutmet.org/simpleserver.git"
"git.gutmet.org/wombat.git/blog"
"git.gutmet.org/wombat.git/converter"
@ -27,7 +28,7 @@ func clean() {
}
func stage1() {
goutil.CopyDirsLinkFiles("stage0", "stage1")
copy.CopyDirsLinkFiles("stage0", "stage1")
mdfiles := goutil.RecListFilesExt("stage1", ".md")
htmlfrags := goutil.RecListFilesExt("stage1", ".html")
splitter.SplitAll(append(mdfiles, htmlfrags...))
@ -43,7 +44,7 @@ func blogs() []string {
}
func stage2() {
goutil.CopyDirsLinkFiles("stage1", "stage2")
copy.CopyDirsLinkFiles("stage1", "stage2")
site.Generate()
for _, blogdir := range blogs() {
blog.Generate(blogdir)

10
go.mod
View File

@ -1,10 +1,12 @@
module git.gutmet.org/wombat.git
go 1.14
require (
git.gutmet.org/finstr.git v0.0.0-20190103161247-f1cd2d363522
git.gutmet.org/goutil.git v0.0.0-20190727202444-1a369915ff2f
git.gutmet.org/simpleserver.git v0.0.0-20181209151100-b298451c1f40
git.gutmet.org/finstr.git v0.0.0-20201011113018-f6da72ffcf26
git.gutmet.org/goutil.git v0.0.0-20201011110813-b9f7ae29b4e6
git.gutmet.org/simpleserver.git v0.0.0-20201011112611-555b83d5de53
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/russross/blackfriday/v2 v2.0.1
github.com/shurcooL/sanitized_anchor_name v0.0.0-20170918181015-86672fcb3f95 // indirect
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd // indirect
)

View File

@ -5,7 +5,7 @@ import (
"flag"
"fmt"
finstr "git.gutmet.org/finstr.git/initer"
"git.gutmet.org/goutil.git"
goutil "git.gutmet.org/goutil.git/misc"
"git.gutmet.org/wombat.git/gallery"
"os"
"path/filepath"

View File

@ -4,7 +4,7 @@ import (
"bytes"
"flag"
"fmt"
"git.gutmet.org/goutil.git"
goutil "git.gutmet.org/goutil.git/misc"
"git.gutmet.org/wombat.git/blog"
gen "git.gutmet.org/wombat.git/generate"
"git.gutmet.org/wombat.git/initer"

View File

@ -4,7 +4,7 @@ import (
"bufio"
"bytes"
"fmt"
"git.gutmet.org/goutil.git"
goutil "git.gutmet.org/goutil.git/misc"
. "git.gutmet.org/wombat.git/templatestructures"
"io/ioutil"
"os"

View File

@ -4,7 +4,7 @@ import (
"bufio"
"bytes"
"fmt"
"git.gutmet.org/goutil.git"
goutil "git.gutmet.org/goutil.git/misc"
"os"
"strings"
"sync"

View File

@ -2,7 +2,7 @@ package main
import (
"fmt"
"git.gutmet.org/goutil.git"
goutil "git.gutmet.org/goutil.git/misc"
"git.gutmet.org/simpleserver.git"
"git.gutmet.org/wombat.git/gallery"
"git.gutmet.org/wombat.git/generate"