Publishing Documentation¶
This project uses MkDocs with the Material theme and publishes the generated static site to GitHub Pages through GitHub Actions.
Local Preview¶
Install the project with the docs extras and start the local server:
The local preview is available at http://127.0.0.1:8000.
Production Build¶
To validate the generated static site before publishing:
The output is written to the site/ directory.
GitHub Pages Deployment¶
The repository includes a workflow at .github/workflows/docs.yml that:
- installs the package with the
docsextras, - builds the site with
mkdocs build --strict, - uploads the generated
site/artifact, - deploys the artifact to GitHub Pages.
One-Time GitHub Setup¶
In the GitHub repository settings:
- Open
Settings > Pages. - In
Build and deployment, selectGitHub Actionsas the source. - Keep the default branch as
main.
After that, each push to main updates the published documentation automatically.
Updating the Content¶
- Edit Markdown pages inside
docs/. - Keep API reference pages in sync with package modules and docstrings.
- Update
mkdocs.ymlwhen adding new sections to the navigation.