spyder-ide / spyder-docs

Documentation for Spyder, the Scientific Python Development Environment
https://docs.spyder-ide.org
MIT License
33 stars 282 forks source link

Update version warning banner to always point to the latest stable docs #374

Closed CAM-Gerlach closed 1 month ago

CAM-Gerlach commented 1 month ago

Pull Request

Pull Request Checklist

Description of Changes

Currently, the warning banner for old (and new) versions embeds a link title and URL that hardcode the version number of the latest stable docs. With Sphinx-Multiversion that was fine, since all branches were rebuilt in sync so even the old banners would always be up to date, but with the new theme introduced in #367 , this will no longer be the case and unmaintained branches will be static, and not migrated to the new theme. Therefore, we need to update the old banner to be "evergreen" and point to the /current/ version rather than a hardcoded version value.

I'll also fix any linkcheck issues that may come up.

Required for #367