Skip to content

📝 docs: add redirects for old URLs (#3806)#3808

Merged
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:fix/3806-docs-redirects
Feb 21, 2026
Merged

📝 docs: add redirects for old URLs (#3806)#3808
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:fix/3806-docs-redirects

Conversation

@gaborbernat
Copy link
Member

The Diataxis restructure moved documentation pages into subdirectories (e.g. config.html to reference/config.html, cli_interface.html to reference/cli.html) and removed several pages entirely (upgrading.html, faq.html, all example/*.html pages from tox 3). External links from Stack Overflow and other sites now return 404.

This adds sphinx-reredirects to 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 like config.html#conf-description still resolve correctly.

Fixes #3806

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.
@gaborbernat gaborbernat enabled auto-merge (squash) February 21, 2026 03:23
@gaborbernat gaborbernat disabled auto-merge February 21, 2026 03:23
@gaborbernat gaborbernat merged commit 02e9ed7 into tox-dev:main Feb 21, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Old documentation links are broken

1 participant