aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md8
-rw-r--r--go.mod15
-rw-r--r--go.sum12
-rwxr-xr-xgodocsbin4401583 -> 5396957 bytes
-rw-r--r--markdown.go2
-rw-r--r--site.go4
6 files changed, 38 insertions, 3 deletions
diff --git a/README.md b/README.md
index 8c9c822..125bdc4 100644
--- a/README.md
+++ b/README.md
@@ -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`.
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..5dc5777
--- /dev/null
+++ b/go.mod
@@ -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
+)
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..a8fd691
--- /dev/null
+++ b/go.sum
@@ -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=
diff --git a/godocs b/godocs
index 87511f0..234d353 100755
--- a/godocs
+++ b/godocs
Binary files differ
diff --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"
)
diff --git a/site.go b/site.go
index 436ce34..0098fd8 100644
--- a/site.go
+++ b/site.go
@@ -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)
}