This directory contains the source files for the Ably Python SDK documentation, built using MkDocs and Material for MkDocs.
- Python 3.12 or higher (documentation tools require Python 3.12+)
- Install documentation dependencies:
uv sync --extra docs
# Build the documentation
uv run mkdocs build
# The generated HTML will be in the site/ directory# Start a local development server
uv run mkdocs serve
# Open http://127.0.0.1:8000/ in your browserThe development server automatically rebuilds the documentation when you make changes to the source files.
docs/- Documentation source files (Markdown)index.md- Home pageapi/- API reference documentation
mkdocs.yml- MkDocs configurationsite/- Generated HTML documentation (gitignored)
The documentation uses mkdocstrings to automatically generate API documentation from Python docstrings. The special ::: syntax in Markdown files tells mkdocstrings to extract and render documentation from Python modules:
::: ably.rest.rest.AblyRestThis automatically generates formatted documentation including:
- Class and method signatures
- Docstrings
- Type hints
- Parameters and return types