diff options
author | Eddy Pedroni <epedroni@pm.me> | 2025-01-10 15:45:34 +0100 |
---|---|---|
committer | Eddy Pedroni <epedroni@pm.me> | 2025-01-10 15:45:34 +0100 |
commit | c8925b971149706b74420d3684de0908b2d5aeb5 (patch) | |
tree | f4fb4809b1a0d276e010b0883430ab53dd381ad2 | |
parent | 5235eeb1e002401390fa04600848afe0ecd910e5 (diff) |
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | go.mod | 15 | ||||
-rw-r--r-- | go.sum | 12 | ||||
-rwxr-xr-x | godocs | bin | 4401583 -> 5396957 bytes | |||
-rw-r--r-- | markdown.go | 2 | ||||
-rw-r--r-- | site.go | 4 |
6 files changed, 38 insertions, 3 deletions
@@ -1,2 +1,10 @@ # godocs HTML generator for the docs site. + +## Build + +``` +go build -o godocs +``` + +The `-o` is important, otherwise the binary ends up being called `godocs.git`. @@ -0,0 +1,15 @@ +module git.0xf7.com/godocs.git + +go 1.23.4 + +require ( + github.com/BurntSushi/toml v1.4.0 + github.com/otiai10/copy v1.14.1 + github.com/russross/blackfriday/v2 v2.1.0 +) + +require ( + github.com/otiai10/mint v1.6.3 // indirect + golang.org/x/sync v0.8.0 // indirect + golang.org/x/sys v0.24.0 // indirect +) @@ -0,0 +1,12 @@ +github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0= +github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= +github.com/otiai10/copy v1.14.1 h1:5/7E6qsUMBaH5AnQ0sSLzzTg1oTECmcCmT6lvF45Na8= +github.com/otiai10/copy v1.14.1/go.mod h1:oQwrEDDOci3IM8dJF0d8+jnbfPDllW6vUjNc3DoZm9I= +github.com/otiai10/mint v1.6.3 h1:87qsV/aw1F5as1eH1zS/yqHY85ANKVMgkDrf9rcxbQs= +github.com/otiai10/mint v1.6.3/go.mod h1:MJm72SBthJjz8qhefc4z1PYEieWmy8Bku7CjcAqyUSM= +github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= +golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= Binary files differdiff --git a/markdown.go b/markdown.go index 4e1d8a3..3a2d33c 100644 --- a/markdown.go +++ b/markdown.go @@ -1,7 +1,7 @@ package main import ( - "gopkg.in/russross/blackfriday.v2" + "github.com/russross/blackfriday/v2" "io/ioutil" ) @@ -48,8 +48,8 @@ func generateSite(site siteData, cfg config, outputDir string) { } } - // link images to generation directory - err := os.Symlink(filepath.Join(site.sourcePath, "img"), filepath.Join(outputDir, site.rawName, "img")) + // link assets to generation directory + err := os.Symlink(filepath.Join(site.sourcePath, "assets"), filepath.Join(outputDir, site.rawName, "assets")) if err != nil { panic(err) } |