Tools for generating API reference documentation using pdoc. Documentation can be built from local source code or git revisions (branch, tag, or commit).
Prerequisites: Python 3.11+, uv, Node.js/npm
Generate documentation:
./api-reference/generate.py --local-source-code./api-reference/local-dev.shStarts a local development server with live reloading:
- Serves generated documentation at
http://localhost:8080(or next available port) - Watches for Python file changes and regenerates documentation with
./api-reference/generate.py --local-source-code
# Generate static files
./api-reference/generate.py --local-source-code# Branch, tag, or commit
./api-reference/generate.py --git-revision feature/new-metrics
./api-reference/generate.py --git-revision v0.7.17
./api-reference/generate.py --git-revision abc1234Add modules beyond the defaults (evidently, evidently.core):
./api-reference/generate.py --local-source-code --additional-modules "evidently.metrics,evidently.guardrails"# View all options
./api-reference/generate.py --help
# Clean build without cache
./api-reference/generate.py --local-source-code --no-cache
# Custom uv run flags
./api-reference/generate.py --local-source-code --uv-run-flags "--python 3.11"Documentation is saved to api-reference/dist/:
- Local:
dist/<path-to-repo-with-dashes>/ - Git:
dist/<revision>/(e.g.dist/v0.7.17/,dist/feature-new-metrics/,dist/abc1234/)
- Changes not updating: Use
--no-cacheor cleardist/ - Import errors: Verify paths and dependencies, use
--no-cache - Watch mode: Requires
--local-source-code