GitHub Pages Deployment¶
This repository publishes documentation with GitHub Pages via workflow:
.github/workflows/docs-pages.yml
Deployment Model¶
- Trigger:
- push to
mainwhen docs/workflow files change - manual
workflow_dispatch - Build:
- Python + MkDocs + Material theme
mkdocs build --strict- Publish:
- upload Pages artifact from
site/ - deploy with
actions/deploy-pages
Required Repository Settings¶
In GitHub repository settings:
- Open
Settings -> Pages. - Set source to
GitHub Actions. - Ensure Actions are allowed to deploy Pages for this repository.
Local Preview¶
Install locally:
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material
Run local docs server:
mkdocs serve
Build static site:
mkdocs build --strict
Site Entry and Nav¶
- config:
mkdocs.yml - content root:
docs/ - generated output:
site/(ignored by git)