Docs versioning¶
This page is the canonical reference for Docs versioning.
Who this is for¶
- Maintainers who publish releases
- Customers who need docs that match what they are running
What you will get¶
- What “dev” and “latest” mean on the hosted site
- How to publish docs for a specific release tag
- How to preview older versions locally
Versioning model¶
This MkDocs site is versioned using mike (versions are stored on the gh-pages branch).
Hosted paths:
/dev/= docs built frommaster(can change every merge)/latest/= alias to the newest released version/vX.Y.Z/= docs for a specific release tag
Release tags¶
Docs versions are published from git tags.
Recommended suite tag format:
recsys-suite/vX.Y.Z(SemVer)
The Pages workflow strips the recsys-suite/ prefix, so the version label becomes vX.Y.Z.
Publishing a new version¶
- Create a tag:
git tag recsys-suite/v0.1.0
- Push the tag:
git push origin recsys-suite/v0.1.0
- GitHub Actions deploys:
/v0.1.0/- updates
/latest/to point tov0.1.0
Local preview (optional)¶
To preview multiple versions locally, install mike and serve the gh-pages branch:
python -m venv .venv
. .venv/bin/activate
python -m pip install mkdocs mkdocs-material mkdocs-swagger-ui-tag pymdown-extensions mike
mike serve
Read next¶
- Docs update policy: Docs per release policy
- What’s new: What’s new