One shared documentation site for the four packages — actuarialpy, lossmodels,
risksim, extremeloss — built with MkDocs +
Material. The API reference is generated
from each package's docstrings via
mkdocstrings, so the reference pages improve
automatically as docstrings improve.
pip install -r requirements.txt
mkdocs serve # live preview at http://127.0.0.1:8000
mkdocs build # static site into ./siteThe packages must be importable (they are listed in requirements.txt) because the
API reference introspects them at build time.
Pushing to main runs .github/workflows/docs.yml, which builds and publishes to the
gh-pages branch via mkdocs gh-deploy. Enable GitHub Pages on that branch in the
repository settings.
mkdocs.yml site config, navigation, theme, plugins
docs/
index.md landing: the four packages + install
overview.md how the four compose (with a diagram)
actuarialpy.md overview + quickstart + API reference
lossmodels.md
risksim.md
extremeloss.md
Each package page ends with a ::: packagename block that mkdocstrings expands into the
full API reference from docstrings.