Enable GitHub Pages¶
NexuML uses mike to publish versioned documentation to GitHub Pages.
1. Enable GitHub Pages in the repository¶
- Go to Settings → Pages in the NexuML GitHub repository.
- Set Source to Deploy from a branch.
- Set Branch to
gh-pagesand directory to/ (root). - Click Save.
2. Trigger the workflow¶
The docs.yml CI workflow deploys automatically:
- Push to
main→ deploys thedevversion - Push a
vX.Y.Ztag → deploys a versioned release and updates thelatestalias
3. Build locally¶
Install docs dependencies and serve locally:
uv sync --extra docs
uv run mkdocs serve
Open http://127.0.0.1:8000.
4. Build a static site¶
uv run mkdocs build --strict
The site is written to site/.
5. Manually deploy a version¶
uv run mike deploy --push --update-aliases 1.2.3 latest
uv run mike set-default --push latest
Version switcher¶
Once deployed, a version switcher appears in the top-right corner of the site (provided by Material for MkDocs + mike integration).