Contributing to the docs¶
Documentation is built with MkDocs Material and mkdocstrings. API pages read the installed Python package directly, so documentation builds also catch invalid imports and signatures.
Local preview¶
Open the local URL printed by MkDocs. To reproduce CI:
Generated output is written to site/ and must not be committed.
Publishing¶
Pull requests build the documentation in strict mode. A push to main uploads
the built site and deploys it with GitHub Pages. Repository Pages settings must
use GitHub Actions as the source.
Initial GitHub Pages activation¶
This is a one-time repository setup and can be completed before or after the
documentation workflow reaches main:
- open Settings → Pages;
- choose GitHub Actions under Build and deployment → Source;
- merge the documentation workflow into
main; - verify the
Documentationworkflow'sdeployjob; and - confirm
https://nl-bioimaging.github.io/biomero-schema/is reachable.
The Pages setting is not bound to a particular workflow. The site will only
appear after the first successful deployment from main.
When a wire model changes, update its conceptual documentation and field examples in the same pull request. Docstrings alone are not enough for fields whose operational meaning depends on another service.