This is an example of the new versioning feature of Material for MkDocs.
First, install Material for MkDocs Insiders and mike:
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
pip install mike
Next, set up your documentation project:
mkdocs new .
Update mkdocs.yml:
site_name: My Docs
theme:
name: material
extra:
version:
provider: mikeMake a change to docs/index.md, and publish the first version:
mike --push --update-aliases 0.1 latest
Set the default version to latest
mike set-default --push latest
Now, make another change and publish a new version:
mike --push --update-aliases 0.2 latest