docs: fix dead virtualenv discovery link in explanation.rst - #4042
Merged
gaborbernat merged 3 commits intoAug 27, 2026
Merged
Conversation
The virtualenv docs were restructured: the old `virtualenv.pypa.io/en/latest/user_guide.html#python-discovery` page no longer exists (404). The discovery logic is now documented at `virtualenv.pypa.io/en/stable/how-to/usage.html#select-a-python-version`, which returns HTTP 200. Verified: GET old -> 404, GET new -> 200. Signed-off-by: Shurong Cao <170531907+CAOShurong@users.noreply.github.com>
gaborbernat
approved these changes
Aug 27, 2026
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.
tox -e fix)docs/changelogfolderProblem
While reading
docs/explanation.rstI noticed thevirtualenv discovery logiclink 404s.The virtualenv documentation was restructured: the old
https://virtualenv.pypa.io/en/latest/user_guide.html#python-discoverypageno longer exists.
Verified with live requests:
Solution
Point the link at the current virtualenv docs location for interpreter
discovery (
how-to/usage.html#select-a-python-version) and add the requireddocumentation news fragment.
Verification
select-a-python-versionanchor.virtualenv.pypa.io/en/latest/...links in the repo(
reference/compatibility.html,changelog.html) still resolve, so only theremoved
user_guide.htmlpage is addressed here.tox run -e docspasses.tox run -e fixpasses.tox env typeCI failures are unrelated dependency drift:ty0.0.75 newly warns on the pre-existingdocs/conf.py:176, while thesame base passed with
ty0.0.74; this PR does not touchdocs/conf.py.This is a documentation-only change; no runtime code is affected.
This contribution was prepared with the assistance of an AI coding agent, used as a tool under my direction; I reviewed and verified the change myself.