Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe pull request adds documentation versioning support by introducing a DOCS_VERSION environment variable in the CI workflow that captures git tag information, and configures Docusaurus to display this version in the navbar with HTML-escaped rendering. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Adds a build-time docs version label so users can see which tagged release the published Docusaurus site corresponds to.
Changes:
- Passes
DOCS_VERSION(fromgithub.ref_name) into the docs build step in the GitHub Pages workflow. - Reads
process.env.DOCS_VERSIONin Docusaurus config and displays it in the navbar (fallbackdev).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/docs.yml |
Exposes the git ref/tag name to the docs build via DOCS_VERSION. |
website/docusaurus.config.js |
Adds a navbar item that renders the version string from DOCS_VERSION (or dev). |
Addresses review comment: on workflow_dispatch runs github.ref_name is the branch name not a tag
Addresses review comment: version string interpolated into HTML should be escaped
Checklist
mainSummary
DOCS_VERSIONenv var (= git tag name) to the Docusaurus build step indocs.ymlprocess.env.DOCS_VERSIONindocusaurus.config.jsand display it as an HTML navbar item (falls back todevwhen not set)Reason for change
Users visiting the docs site had no way to know which version the docs correspond to.
Changes
.github/workflows/docs.yml: addenv.DOCS_VERSION: ${{ github.ref_name }}to the build stepwebsite/docusaurus.config.js: addversionconstant and atype: 'html'navbar item showing itNotes
workflow_dispatchruns (manual trigger without a tag) will showdevas the version label.