Service Weaver website is a static site generated by running a generator program, from within the top-level weaver directory:
go run dev/docgen/docgen.go
And to preview the resulting structure:
(cd website/public && python3 -m http.server)
You can also run go run dev/docgen/docgen.go --watch
to automatically rebuild
the website whenever the source files change.
Name | Description |
---|---|
. | Editable document contents in .md and .html files |
assets | Supporting CSS, Javascript, images |
generate | Web site generator |
public | Generated website (DO NOT EDIT!) |
templates | Go templates that define generated document structure |
To add a blog post:
- Write the blog as a markdown file in
blog/
. - Update
blog/index.html
with a link to the blog. - Update
dev/docgen/docgen.go
with the markdown file.