Skip to content

Conversation

@szkarpinski
Copy link
Contributor

@szkarpinski szkarpinski commented Jul 19, 2025

Purpose

This PR removes 'v' prefix from non-numeric versions in reftitles in intersphinx. Appending it resulted in strange version names like "vstable" instead of just "stable".

References

This commit removes 'v' prefix from non-numeric versions in reftitles in intersphinx. Appending it resulted in strange version names like "vstable" instead of just "stable"

Signed-off-by: Szymon Karpiński <[email protected]>
Signed-off-by: Szymon Karpiński <[email protected]>
Comment on lines 53 to 54
version = 'v%s' % inv_item.project_version
reftitle = _('(in %s %s)') % (inv_item.project_name, version)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please can you use an f-string here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to f-string for version = .... For reftitle = ... I can't use an f-string, because as far as I understand _(...) needs to work on a yet unformatted string.

Signed-off-by: Szymon Karpiński <[email protected]>
@szkarpinski szkarpinski requested a review from AA-Turner July 19, 2025 09:40
Copy link
Member

@AA-Turner AA-Turner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please add yourself to AUTHORS and add a brief CHANGES entry.

A

@AA-Turner AA-Turner merged commit 8949df4 into sphinx-doc:master Jul 19, 2025
28 checks passed
@AA-Turner
Copy link
Member

Congratulations on your first contribution @szkarpinski!

A

@AA-Turner AA-Turner added extensions:intersphinx sprint For work completed at a conference or similar event. labels Jul 19, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 19, 2025
@AA-Turner AA-Turner added this to the 9.0.0 milestone Nov 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

extensions:intersphinx sprint For work completed at a conference or similar event.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Intersphinx: link title contains vfoo for non-numeric versions

2 participants