You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DOC: Documentation should be available for different versions #78
@Letme and @mattip - Thanks for your guidance. The PR #153 adds a version switcher modeled after NumPy's docs pattern, and includes the redirect to /latest/ you suggested. The redirect and latest symlink will take effect on the first release tag push after the PR is merged.
Hi @mattip, thanks for reviewing and merging the changes. While clicking through the live docs, I noticed two things.
The switcher shows up on the dev docs (https://numpy.org/numpy-financial/dev/), but not on the stable docs, since latest still points to the 1.1.0 build from before this change (something I should have flagged in the PR description). As https://numpy.org/numpy-financial/latest/index.html is the page most users land on, it would be great for it to show the switcher. If you'd like it sooner than the next release, I'm happy to open a PR against gh-pages that rebuilds the 1.1.0 docs with the switcher.
Also, the 0.1.0 and 0.2.0 docs use the older layout without a switcher, so once you go there from the dropdown, the only way back is the browser's back button. That seems fine to me for old versions, but wanted to flag it.
Activity
AbhiRKeesara commentedon Sep 17, 2026
Hi @InessaPawson
I'd like to work on this as part of the NumFOCUS Sustaining Open Source Series program.
I've explored the repo and see that versioned docs already exist on gh-pages:
/version/0.1.0//version/0.2.0//version/1.1.0//dev/What's missing is the version switcher UI to let users navigate between them.
Proposed plan:
Add version switcher to
conf.pyhtml_theme_options["switcher"](pydata-sphinx-theme already supports this)"version-switcher"to the navbarCreate
switcher.json/dev/_static/switcher.jsonso all versions reference the same file)Automate
switcher.jsonupdatespublish_docs_to_pages.ymlto auto-updateswitcher.jsonwhen new versions are deployedNote: I noticed v1.0.0 has a tag but no docs deployed. I'll skip it in this PR to keep scope focused. Happy to backfill in a follow-up PR if needed.
Question: Any preference on where
switcher.jsonshould live?Happy to start on a PR!
Letme commentedon Sep 17, 2026
Model it the same as official numpy documentation. That way it is familiar to maintain between both repos.
AbhiRKeesara commentedon Sep 17, 2026
@Letme Thanks for the guidance! I'll model it after numpy's setup:
versions.jsonat the doc root (/_static/versions.json)html_theme_optionsstructure withnavbar_endandswitcherconfigshow_version_warning_banneroptionI'll study numpy's
doc/source/conf.pyand match the pattern. Will share a PR once ready!mattip commentedon Sep 17, 2026
The numpy-financial documentation lives on the gh-pages branch, unlike the numpy documentation that lives in a separate repo.
One more thing: the homepage should redirect to latest/index.html, rather than show the content it does today
DOC: Add version switcher to documentation
AbhiRKeesara commentedon Sep 17, 2026
@Letme and @mattip - Thanks for your guidance. The PR #153 adds a version switcher modeled after NumPy's docs pattern, and includes the redirect to /latest/ you suggested. The redirect and latest symlink will take effect on the first release tag push after the PR is merged.
DOC: Add version switcher to documentation
DOC: Add version switcher to documentation
AbhiRKeesara commentedon Oct 18, 2026
Hi @mattip, thanks for reviewing and merging the changes. While clicking through the live docs, I noticed two things.
The switcher shows up on the dev docs (https://numpy.org/numpy-financial/dev/), but not on the stable docs, since
lateststill points to the 1.1.0 build from before this change (something I should have flagged in the PR description). As https://numpy.org/numpy-financial/latest/index.html is the page most users land on, it would be great for it to show the switcher. If you'd like it sooner than the next release, I'm happy to open a PR against gh-pages that rebuilds the 1.1.0 docs with the switcher.Also, the 0.1.0 and 0.2.0 docs use the older layout without a switcher, so once you go there from the dropdown, the only way back is the browser's back button. That seems fine to me for old versions, but wanted to flag it.
Dev docs (switcher in the navbar):
Stable docs via latest (no switcher):
0.2.0 docs (older layout, no switcher):