DESCENT Documentation
This directory contains the Sphinx documentation for DESCENT.
Building the Documentation
Using Pixi (Recommended)
This project uses Pixi for environment management. To build the documentation:
# Build HTML documentation
pixi run -e docs make_docs
# Clean build artifacts
pixi run -e docs clean_docs
The built documentation will be in docs/_build/html/. Open docs/_build/html/index.html in your browser.
Manual Build
If you have the dependencies installed in your current environment:
cd docs
make html
Prerequisites
The docs environment in pixi.toml includes all required dependencies:
Sphinx ≥ 7.0
sphinx_rtd_theme ≥ 2.0
myst-parser ≥ 2.0
nbsphinx ≥ 0.9
sphinxcontrib-bibtex ≥ 2.5
sphinx-autodoc-typehints ≥ 1.24
Other Build Commands
make latexpdf # Build PDF documentation
make epub # Build EPUB documentation
make linkcheck # Check for broken links
make clean # Remove build artifacts
Documentation Structure
index.md- Main documentation indexinstallation.md- Installation guideexamples.md- Examples and tutorialstraining.md- Training guidetargets.md- Target functions guideoptimization.md- Optimization guidereleasehistory.md- Release notesapi/- API reference documentation_static/- Static files (images, CSS)_templates/- Custom templates
Contributing to Documentation
When adding new features:
Update relevant guide pages (training.md, targets.md, etc.)
Add docstrings to new classes/functions (NumPy style)
Update API reference if adding new modules
Add examples if appropriate
Build and review the documentation locally
Check for broken links with
make linkcheck
Style Guide
Use NumPy docstring format for all docstrings
Use Markdown for narrative documentation
Use reStructuredText for API reference files
Include code examples where helpful
Add cross-references using MyST syntax:
[text](path.md)or{ref}`label`Use math notation with
$...$for inline and$$...$$for display math