Documentation Generation
Documentation site.
Diagrams
Mermaid diagrams in Markdown work with fenced code blocks. For example:
```mermaid
:zoom: 100%
graph LR
A[Device configured] --> B[Open log panel]
B --> C{SSH stream}
C --> D[Log lines rendered]
```
will render as:
graph LR
A[Device configured] --> B[Open log panel]
B --> C{SSH stream}
C --> D[Log lines rendered]
API reference
The API reference is generated with TypeDoc and surfaced inside Sphinx. When Sphinx builds the site, it runs TypeDoc (when available) to refresh the docs/build/typedoc output so the api/ section stays up to date.
Building this documentation
Install doc tooling with
pip install -r docs/requirements.txt.Install Node.js development dependencies with
npm installto provide the bundledtypedocandclocbinaries used during the build.Run
npm run lint:docsto spell-check the Markdown sources.(Optional) Generate the TypeDoc HTML output with
npm run docs:typedoc(outputs todocs/build/typedoc).Build the site with
sphinx-build -b html docs/source docs/build/html(Sphinx runs TypeDoc andclocwhen available; setCLOC_SKIP=1to skip the metrics report).GitHub Actions publishes the built HTML to the
gh-pagesbranch on each push tomainwith tag.