Started writing module documentation
This commit is contained in:
parent
0d5e406f90
commit
852ea7c0f7
7 changed files with 867 additions and 5 deletions
17
cmd/doc/main.go
Normal file
17
cmd/doc/main.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"lmika.dev/pkg/progdoc"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if err := progdoc.Site(
|
||||
progdoc.Meta(progdoc.SiteMeta{Title: "UCL"}),
|
||||
progdoc.Path("/").File("_docs/index.md"),
|
||||
progdoc.Path("/mods").GoFiles("ucl/builtins", "_docs/mods.tmpl"),
|
||||
).Generate(); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue