Documentation
How this site is organized, built, and kept in sync with the code.
This site documents the develop branch, not the latest release.
It is built with Hugo and Docsy from docs/ and published at /pola/ on GitHub Pages.
make docs-setup # check tools, then npm ci
make docs-serve # preview at http://localhost:1313/
make docs-build # production build with the /pola/ base path, then the link check
Organization
| Section | Audience and content |
|---|---|
User Guide (docs/user/) | Operators: installation, provisioning, operation, and troubleshooting. |
Reference (docs/reference/) | Lookup material: CLI commands, configuration, gRPC API, and supported standards. |
Developer Guide (docs/developer/) | Contributors and library users: internals, tests, and documentation. |
About (docs/about/) | Presentations, license, and credits. |
Keep each topic in one canonical source; other pages and READMEs link to it instead of repeating it.
| Topic | Canonical source |
|---|---|
| Example labs | examples/containerlab/*/README.md |
| Go gRPC client examples | examples/grpc/go/README.md |
| Scenario tests | test/README.md |
| Contribution rules, Make targets, image builds | CONTRIBUTING.md |
| Site dependencies and publishing | docs/README.md |
| Protocol Buffers API | api/pola/v1/pola.proto |
| Go API reference | pkg.go.dev |
Writing rules
- Write pages in English Markdown under
docs/content/en/. The front mattertitleis the page heading; start body headings at##. - Link to pages with the
refshortcode and an absolute content path, such as{{< ref "/docs/user/dynamic-paths" >}}. A brokenreffails the build. - Link to repository files with
repo-url, adding"tree"for directories. Do not hard-code branch URLs;repo-urlusesgithub_branchinhugo.yaml. - Use
static-urlfor files underdocs/static/. Thedocs/schemas/directory is mounted atschemas/; for example,{{< static-url "schemas/server/polad_config.json" >}}. - Do not write root-relative links such as
/docs/...; they lose the/pola/base path.npm run check:linksreports them. - Describe current behavior and limitations accurately; do not document planned behavior as implemented.
- Base example output on actual program output, and use documentation prefixes (192.0.2.0/24 from RFC 5737, 2001:db8::/32 from RFC 3849).
Keeping docs in sync
Update the documentation in the same pull request as behavior changes, including fixes to documented limitations.