Skip to content

Fix version switcher issues on GH docs page#2436

Merged
shaahji merged 1 commit intomainfrom
shaahji/docs
Apr 24, 2026
Merged

Fix version switcher issues on GH docs page#2436
shaahji merged 1 commit intomainfrom
shaahji/docs

Conversation

@shaahji
Copy link
Copy Markdown
Collaborator

@shaahji shaahji commented Apr 24, 2026

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

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

(Optional) Issue link

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.
Copilot AI review requested due to automatic review settings April 24, 2026 20:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_theme switcher configuration to load versions.json from the local _static directory.
  • Refresh docs/source/_static/versions.json to mark 0.12.1 as latest and add 0.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.

@shaahji shaahji merged commit 99baf12 into main Apr 24, 2026
12 checks passed
@shaahji shaahji deleted the shaahji/docs branch April 24, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants