Skip to content

Don't include intersphinx version in HTML link titles - #5127

Open
hugovk wants to merge 2 commits into
python:mainfrom
hugovk:intersphinx-mypy
Open

hugovk wants to merge 2 commits into
python:mainfrom
hugovk:intersphinx-mypy

Conversation

@hugovk

@hugovk hugovk commented Sep 16, 2026

Copy link
Copy Markdown
Member

Fixes #5086 (comment).

PEP 764 often shows up in RTD previews even though it's not changed:

image

This is because intersphinx mapping for mypy is on https://mypy.readthedocs.io/en/latest, and Sphinx includes a dev version in the <a> link:

title="(in mypy v2.4.0+dev.0d30f0859aae833ef0a906cb3f750fa775e7e93f)"

We could change it to https://mypy.readthedocs.io/en/stable, so we'd get:

title="(in mypy v2.3.1)"

Then only a single false preview when a new release comes out. Also happens for the trio and python intersphinx mappings. Still annoying.

So let's do some Sphinx rewriting to put (in <project>)" instead of (in <project> v<version>)".

And also the stable mypy link is better.

@hugovk
hugovk requested a review from AA-Turner as a code owner September 16, 2026 13:37
@hugovk hugovk added the infra Core infrastructure for building and rendering PEPs label Sep 16, 2026
@hugovk hugovk mentioned this pull request Sep 16, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra Core infrastructure for building and rendering PEPs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant