GitHub Pages¶
This repository deploys the MkDocs Material site from the main branch with
GitHub Actions. It should not use a gh-pages branch and it should not use the
GitHub Pages "Deploy from a branch" mode.
The Pages source in repository settings must be:
If Pages is set to main / docs, GitHub Pages runs Jekyll against the
Markdown source files in docs/. That produces the plain Primer-style page and
can fail with errors like:
The correct path is:
Local Build¶
Local Preview¶
Open:
Deployment¶
The repository workflow lives at .github/workflows/docs.yml.
It:
- runs on pushes to
mainand manual dispatches, - installs the docs extra,
- builds the site into
site/, - adds
.nojekyllto the artifact, - deploys with
actions/deploy-pages.
The Python package publishing workflow is separate:
.github/workflows/publish.yml builds and publishes to PyPI only for v* tags
or manual dispatches.