This documentation repository uses branch-based versioning. Each version of the documentation corresponds to a git branch.
-
Create a new branch from the version you want to base it on:
git checkout -b 1.0 main
-
Update the documentation for the new version and commit and push:
git add . git commit -m "docs: update documentation for version 1.0" git push origin 1.0
- Make changes on the
mainbranch - Commit and push:
git checkout main # Make your changes git add . git commit -m "docs: update..." git push
-
Checkout the version branch:
git checkout 1.0
-
Make your changes and commit:
git add . git commit -m "docs: fix typo in 1.0" git push origin 1.0
- Keep versions in sync: When fixing critical bugs, consider backporting to older versions
- Version-specific content: Some features may only exist in certain versions - document accordingly
- Breaking changes: When creating a new major version, clearly document what changed
- Default version: The default version should typically be the latest stable release
The deployment repository automatically:
- Checks out each version branch
- Syncs documentation to versioned directories
- Builds the documentation site with version switching enabled
No manual intervention needed - just push to the appropriate branch!