GitHub Pages¶
This repository is ready to publish the MkDocs site with GitHub Pages.
One-Time Repository Setting¶
In the GitHub repository settings, set Pages to use GitHub Actions as the build and deployment source. After that, the workflow in .github/workflows/pages.yml handles the rest.
Deployment Workflow¶
The workflow runs on pushes to main and on manual dispatch. It:
- Checks out the repository.
- Sets up Python and
uv. - Runs
uvx --from mkdocs --with 'mkdocs-material==9.5.*' --with pymdown-extensions mkdocs build --strict --site-dir site. - Uploads the built
site/directory as a Pages artifact. - Deploys the artifact to GitHub Pages.
The expected public URL is:
If the repository owner or name changes, update site_url in mkdocs.yml.
Local Build¶
Run the same strict build locally:
Preview while editing:
MkDocs writes the local build to site/; that directory is generated output and should not be committed.