Documentation#
This site is built from the code as much as the code allows. A parameter, a command, a solver, a figure and a test list are written by the build from the repository. What you write by hand are the user guide, the theory pages and the contributor pages.
Three rules#
The code is the only source of a parameter. Name, type, default, unit, range and conditions are read from the Pydantic models. No page types them.
A reference page is generated. If a card is wrong, fix the model or its metadata, never the page. The generated pages are not committed.
A page embeds keys, it does not copy them. It writes
flow.param.K.field.valuein prose and lists rows withhmp-params. A key that does not exist stops the build.
Pages#
How the docs are built: the generators, the extensions, the checks and the commands to build and check a page.
Write a theory page: equations in the order the code applies them.
Docstring policy: what the Python API reference reads from a docstring.
Documentation coverage: what the models leave undocumented, computed at each build.
To document a TOML key, write its
Fielddescription. The recipe is the section “Describe the field” of Add a config field.