-
Notifications
You must be signed in to change notification settings - Fork 80
Update document versioning for PR #724 #735
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: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enhances the documentation build system to support versioning, building on PR #724. It configures sphinx-multiversion to generate documentation for different versions and adds a version selector to the documentation website.
Changes:
- Adds sphinx-multiversion dependency and configuration to build versioned documentation from git tags
- Creates automated version generation script that syncs documentation versions with git tags
- Updates build system to support both single-version (development) and multi-version (production) builds
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/requirements.txt | Adds sphinx-multiversion==0.2.4 dependency for multi-version documentation support |
| docs/generate_versions.py | New Python script to auto-generate versions.js from git tags, filtering versions before v0.4.0 |
| docs/conf.py | Configures sphinx-multiversion extension and adds build hooks to copy version selector files |
| docs/_templates/layout.html | New Jinja2 template adding version selector UI component to documentation sidebar |
| docs/_static/version-selector.js | JavaScript implementing version selector with page existence checking using HEAD requests |
| docs/Makefile | Adds multiversion build target and integrates version generation into build process |
| .gitignore | Ignores auto-generated versions.js file |
| .github/workflows/gh-pages.yml | Updates CI/CD to use multiversion build target for production deployments |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ub.com/microsoft/mscclpp into qinghuazhou/document_versioning_revise
… the duplicated version selector from layout.html
Binyang2014
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls also update the file: .github/workflows/doc-build.yaml
This PR fix the issue of generating docs when we take #724 into main branch.
Build docs for main branch separately.
Use HEAD request instead of GET to check if a page exist.
Filter out versions before v0.4.0 in generate_versions.py.