GitHub Pages¶
This repository can publish the MkDocs site from docs/ with GitHub Pages.
Local Preview¶
From the repository root:
python -m mkdocs serve
Open the printed local URL, usually:
http://127.0.0.1:8000
If the port is already in use:
python -m mkdocs serve -a 127.0.0.1:8001
Build Check¶
Before pushing documentation changes:
python -m mkdocs build --strict
Publish¶
The repository includes .github/workflows/docs.yml, which publishes the docs
site when changes are pushed to main.
In GitHub, configure:
- Repository Settings.
- Pages.
- Source: Deploy from a branch.
- Branch:
gh-pages.
After the workflow runs successfully, GitHub Pages serves the generated site
from the gh-pages branch.