Documentation Authoring Guide#
This guide explains where to write documentation and where auto-generated documentation appears.
Documentation Structure#
- Manually Written Documentation:
Getting Started guides (
docs/getting-started/)CLI usage guides (
docs/cli/usage/)SDK usage guides (
docs/sdk/usage/)Protocol usage guides (
docs/protocols/)Overview pages (
docs/cli/overview.rst,docs/sdk/overview.rst,docs/protocols/about.rst)Resources (
docs/resources/)
- Auto-Generated Documentation:
CLI reference (
docs/cli/reference.rst) - Generated frombiolmai.cliusingsphinx-clickAPI reference (
docs/api-reference/) - Generated from Python code usingsphinx-apidocProtocol YAML reference - Content in
docs/protocols/; full JSON Schema in Full JSON Schema
Where to Write Documentation#
CLI Documentation#
- Write here:
docs/cli/overview.rst- CLI overview and general informationdocs/cli/usage/*.rst- Usage guides for each topic (authenticating, workspaces, models, protocols, datasets)
- Auto-generated:
docs/cli/reference.rst- Command reference (usessphinx-clickdirectives pointing tobiolmai.cli)
Note: The CLI reference page uses .. click:: directives that pull documentation from the Click command definitions in biolmai/cli.py. To update command documentation, edit the docstrings and help text in the CLI code.
SDK Documentation#
- Write here:
docs/sdk/overview.rst- SDK overview and general informationdocs/sdk/usage/*.rst- Usage guides (batching, error-handling, async-sync, rate_limiting, io, usage; disk output is covered in the Usage page)
- Auto-generated:
docs/api-reference/- API reference (generated from Python docstrings usingsphinx-apidoc)
Note: The API reference is generated from docstrings in the Python code. To update API documentation, edit docstrings in biolmai/*.py files.
Protocol Schema Documentation#
- Write here:
docs/protocols/about.rst,inputs.rst,execution.rst,tasks.rst,output.rst- Protocol YAML structure and semantics
Schema: The formal JSON Schema is in Full JSON Schema; the client validates protocol YAML against it.