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

SectionAudience 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.

TopicCanonical source
Example labsexamples/containerlab/*/README.md
Go gRPC client examplesexamples/grpc/go/README.md
Scenario teststest/README.md
Contribution rules, Make targets, image buildsCONTRIBUTING.md
Site dependencies and publishingdocs/README.md
Protocol Buffers APIapi/pola/v1/pola.proto
Go API referencepkg.go.dev

Writing rules

  • Write pages in English Markdown under docs/content/en/. The front matter title is the page heading; start body headings at ##.
  • Link to pages with the ref shortcode and an absolute content path, such as {{< ref "/docs/user/dynamic-paths" >}}. A broken ref fails the build.
  • Link to repository files with repo-url, adding "tree" for directories. Do not hard-code branch URLs; repo-url uses github_branch in hugo.yaml.
  • Use static-url for files under docs/static/. The docs/schemas/ directory is mounted at schemas/; 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:links reports 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.

Last modified November 20, 2026: docs: modernize documentation site (74dd3de)