-
Notifications
You must be signed in to change notification settings - Fork 41
Website: Implement Docusaurus versioning system with automated CI deployment and retroactive versioning #1459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
@copilot add a step in the CI to deploy when we make a release |
Added automated CI deployment for documentation versioning. The GitHub Actions workflow now automatically creates and deploys versioned documentation to GitHub Pages when release tags are created. See commit ea828cc for the implementation details. |
Co-authored-by: dannywillems <6018454+dannywillems@users.noreply.github.com>
Co-authored-by: dannywillems <6018454+dannywillems@users.noreply.github.com>
ea828cc to
170085c
Compare
|
@copilot add in the documentation how to create a version for a previous release. In particular, we would like to deploy a version for v0.17.0. |
Co-authored-by: dannywillems <6018454+dannywillems@users.noreply.github.com>
Added comprehensive documentation for creating versions for previous releases, including a specific example workflow for v0.17.0. The guide covers the complete process from finding the release commit to integrating the versioned documentation. See commit 64acbac for the implementation. |
This PR implements a comprehensive documentation versioning system using Docusaurus's built-in versioning capabilities. The system allows users to access documentation for specific releases while maintaining the current development documentation at the root path.
Changes Made
Enhanced Docusaurus Configuration
docusaurus.config.tsto properly support multiple documentation versionsonlyIncludeVersionssetting that was limiting version displayAdded Makefile Commands for Version Management
docs-version-create VERSION=x.y.z- Creates a new documentation version snapshotdocs-version-list- Lists all available documentation versionsdocs-version-clean- Shows files that would be removed (safe preview)docs-version-clean-force- Force removes all versioned documentationrelease-docs-version VERSION=x.y.z- Integrated command for release workflowUpdated Release Process Integration
make release-*commandsAutomated CI/CD Pipeline
.github/workflows/docs.yamlto automatically deploy versioned documentation on release tagsComprehensive Documentation
/docs/appendix/documentation-versioningHow It Works
Manual Version Creation
When a new release is created, the team can run:
Automated CI Deployment
When a release tag is created (e.g.,
v1.2.3), GitHub Actions automatically:Retroactive Versioning for Previous Releases
The documentation now includes comprehensive instructions for creating documentation versions for releases that were made before the versioning system was implemented. This process enables creating versions for historical releases like v0.17.0 by:
This creates a snapshot of the current documentation under
website/versioned_docs/version-1.2.3/, making it accessible at/docs/1.2.3/. Users can then switch between versions using the dropdown in the navigation bar.Version Behavior
The system preserves the exact state of documentation at release time, ensuring users can always access relevant docs for their specific version of the software. The automated CI pipeline ensures versioned documentation is immediately available when releases are published, and the retroactive versioning capability enables creating documentation for any previous release.
Fixes #1458.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.