readthedocs / sphinx_rtd_theme

Sphinx theme from Read the Docs
https://sphinx-rtd-theme.readthedocs.io/
MIT License
4.75k stars 1.73k forks source link

Version listing needs to show hidden versions if active #1608

Closed ericholscher closed 4 days ago

ericholscher commented 5 days ago

With the Addons data we're returning, if the current version is active, we likely need to add it to the list of versions somehow.

You can see the issue here, where it's filtered out of the list:

Screenshot 2024-09-24 at 9 49 32 AM

humitos commented 5 days ago

We have to add config.versions.current.hidden to this condition as well: https://github.com/readthedocs/sphinx_rtd_theme/blob/ccf31144c997954aaa9b50839d670b0d282ae824/sphinx_rtd_theme/static/js/versions.js_t#L161-L163