1.4 KiB
1.4 KiB
Axolotl API Documentation with quartodoc
This directory contains the API documentation for Axolotl, automatically generated using quartodoc.
Setup
-
Make sure quartodoc is installed:
pip install quartodoc -
Install Quarto (required to render the documentation):
# Download and install the latest Quarto release # Visit https://quarto.org/docs/get-started/ for installation instructions
Generating Documentation
Run the documentation generation script:
python scripts/generate_docs.py
This will:
- Read the configuration from
_quarto.yml - Extract documentation from the Python source code
- Generate Quarto markdown files (.qmd) in the
docs/apidirectory
Preview the Documentation
After generating the documentation, preview it with:
quarto preview
Building the Site
Build the complete site with:
quarto render
This will create a _site directory with the static HTML site.
Configuration
The documentation generation is configured in two places:
_quarto.yml- Contains thequartodocsection that defines which modules to document- The API section in the Quarto website sidebar configuration (also in
_quarto.yml)
Customization
To customize the documentation, you can:
- Add more modules to document in the
quartodocsection of_quarto.yml - Create template files in the
quartodoc_templatesdirectory - Adjust the layout in the Quarto configuration