Warning
MkDocs for Material is deprecated. For new projects, use Zensical documentation instead. Here is the template for Zensical documentation projects.
A MkDocs Material Template repository. It enables a useful set of extensions and plugins by default, and contains a Makefile that uses Docker to serve the documentation locally, and a GitHub workflow to publish the documentation on GitHub Pages by default.
This template is intended both for those that include the documentation in their main repository, and those that use a separate repository for the documentation.
To build the pages and see edits live using Docker:
cd docs/
makeOr using Python 3, creating and activating a virtual environment:
cd docs/
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
mkdocs serve
deactivateOr using UV, creating and activating a virtual environment:
cd docs/
uv venv
uv pip install -r requirements.txt
uv run mkdocs serveNavigate to localhost:8000 to see the documentation.
The local documentation is automatically reloaded when changes occur.
Changes pushed to the main branch are automatically deployed to GitHub Pages.
Install the pip-check-updates tool in a virtual environment (e.g., using pip install pip-check-updates or uv pip install pip-check-updates). Usage:
cd docs/
pcu requirements.txtAnd update the dependencies to their latest versions using:
cd docs/
pcu -u requirements.txtNote
Install the updated dependencies using:
pip install -r requirements.txtOr, when using UV:
uv pip install -r requirements.txtTo the extent possible under law, Daniel A. A. Pelsmaeker has waived all copyright and related or neighboring rights to the MkDocs Material Template repository. Feel free to use this as you see fit, no attribution required.
