Contributing to Documentation¶
The documentation system has one central invariant: public API prose starts in
Rust /// comments. Zensical pages may explain workflows and concepts, but
reference pages should inject generated API docs or link to generated API docs
instead of copying signatures by hand.
For Python, keep molrs-python/python/molrs/_lib.pyi synchronized with the
PyO3 module exports. molrs-python/tests/test_stub_parity.py is the freshness
guard and runs in tox -e py: it fails when a compiled export is missing from
the stub, and when a parameter name differs between the stub and the compiled
signature.
For WASM, build declarations with the same wasm-pack flags used by npm
publishing. The generated pkg/ directory is ignored and must not be committed.
Local documentation loop. The Zensical config lives at
molrs-python/zensical.toml, so build and serve from that directory (its
[doc] extra pulls in Zensical plus the mkdocstrings Python handler):