Added options to configure the site

This commit is contained in:
Leon Mika 2026-02-01 17:04:15 +11:00
parent 552b016719
commit 64e19d8700
7 changed files with 118 additions and 17 deletions

View file

@ -7,7 +7,11 @@ import (
)
func main() {
if err := progdoc.Site().Publish(); err != nil {
if err := progdoc.Site(
progdoc.Meta(progdoc.SiteMeta{Title: "Prog Doc"}),
progdoc.SourceFile("/", "README.md"),
progdoc.SourceDir("/", "_site"),
).Publish(); err != nil {
log.Fatal(err)
}
}