📝 docs: add redirects for old URLs (#3806)#3808
Merged
gaborbernat merged 1 commit intotox-dev:mainfrom Feb 21, 2026
Merged
Conversation
The Diataxis restructure moved pages like config.html into reference/config.html and removed others like upgrading.html and example/*.html entirely. External links from Stack Overflow and other sites now 404. Using sphinx-reredirects to generate HTML redirect pages at build time so old URLs resolve to their new locations. URL fragments are preserved, so config.html#conf-description still works.
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.
The Diataxis restructure moved documentation pages into subdirectories (e.g.
config.htmltoreference/config.html,cli_interface.htmltoreference/cli.html) and removed several pages entirely (upgrading.html,faq.html, allexample/*.htmlpages from tox 3). External links from Stack Overflow and other sites now return 404.This adds
sphinx-reredirectsto generate HTML redirect pages at build time, keeping the configuration version-controlled alongside the docs. Pages that moved get redirected to their new location, and removed pages redirect to the landing page. URL fragments are preserved so links likeconfig.html#conf-descriptionstill resolve correctly.Fixes #3806