Versioning
Manage multiple documentation versions
Document multiple versions of your project.
Strategies
Branch-based (recommended)
Separate git branches per major version:
Benefits:
- No content duplication
- Independent builds per version
- Clean git history
Directory-based
Version folders in single branch:
Benefits:
- Single deployment
- Easy diffing between versions
Version selector
Add a version dropdown to your docs:
Routing
Subdomains
Subpaths
SEO
Canonical URLs
Always set canonical to the latest version:
Sitemap priorities
Deprecation notices
Show banners on old versions: