Docs Deployment (GitHub Pages)¶
This project publishes documentation with MkDocs via GitHub Actions.
Stack¶
- static site generator: MkDocs,
- source files:
docs/*.md, - config:
mkdocs.yml, - deploy target: GitHub Pages.
One-time repository setup¶
In repository settings:
- Open Settings -> Pages.
- Set Source to GitHub Actions.
- Save.
Automatic deployment¶
Deployment workflow is defined in .github/workflows/docs.yml.
It runs on:
- push to
mainwhen docs-related files change, - manual
workflow_dispatchtrigger.
Pipeline stages:
- install Python,
- install MkDocs,
- build static site (
mkdocs build --strict), - upload Pages artifact,
- deploy to GitHub Pages.
Local preview¶
Open http://127.0.0.1:8000.
Common issues¶
- Broken links in docs: run local preview and check navigation links.
- Build fails in CI with strict mode: fix markdown warnings and invalid links.
- Pages not updating: confirm workflow succeeded and Pages source is GitHub Actions.