Conversation
Root cause: versions.json was modified on release branch and the automation script even updated the local versions file to add the new version, however, the build configuration wasn't using the local file. The build was configured to use the file from last released version on GH.
xiaoyu-work
approved these changes
Apr 24, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes the Sphinx docs version switcher on GitHub Pages by ensuring it uses the versions list that is shipped with the docs being built, instead of fetching a potentially stale versions file from the currently deployed site.
Changes:
- Update
pydata_sphinx_themeswitcher configuration to loadversions.jsonfrom the local_staticdirectory. - Refresh
docs/source/_static/versions.jsonto mark0.12.1as latest and add0.12.0.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/source/conf.py | Points the theme’s version switcher at the locally built _static/versions.json so the build uses the updated list. |
| docs/source/_static/versions.json | Updates the published version entries and latest designation for the docs switcher. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix version switcher issues on GH docs page
Root cause: versions.json was modified on release branch and the automation script even updated the local versions file to add the new version, however, the build configuration wasn't using the local file. The build was configured to use the file from last released version on GH.
Checklist before requesting a review
lintrunner -a(Optional) Issue link