Getting Started¶
This section gives you a minimal checklist to build the documentation locally and wire it into your workflows.
Install doc tooling with uv¶
The docs have their own docs/pyproject.toml. Create the env and install requirements with uv:
cd docs
uv sync # creates docs/.venv and installs Sphinx + Furo
If you prefer to reuse an existing environment, you can instead run uv pip install -r docs/requirements.txt.
Build the docs locally¶
cd docs
uv run sphinx-build -M html . _build
open _build/html/index.html
Or just run the helper from the repository root (it syncs deps, builds the extension, and renders HTML):
./builddocs
Need a single text file for LLM ingestion? Use the alternate target:
./builddocs llms # writes docs/_build/llms.txt
Python package in editable mode¶
To build the extension module so autodoc can import ontoenv:
cd python
uv run maturin develop
CLI binary¶
You can install the Rust CLI from crates.io or build it from the workspace:
cargo install ontoenv-cli # pulls the published binary
# or, from the workspace:
cargo build -p ontoenv-cli --release
Publishing to GitHub Pages¶
Build with
uv run sphinx-build -M html . _build(or from CI).Publish the contents of
docs/_build/htmlto your Pages branch (e.g.,gh-pages) or configure Pages to read fromdocsif you usesphinx-build -M dirhtml.Remember to set the Pages source to
/docsor the dedicated branch when you push to GitHub.