New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:term: referenced via intersphinx is case sensitive #9291
Comments
I've also just run into this. From my (non-exhaustive) testing, it looks like the case-insensitive intersphinx term linking stopped working with Sphinx v3. The term links work correctly in Sphinx 2.4.4 and under. |
A git bisect indicates that this was an intentional change made in a5dadeb to address #7418. |
Yup, it looks like the resolver for :term: isn't used when loading references from intersphinx? If anyone has better knowledge of how things are structured they'd probably have a better idea, but as far as I can tell the resolution in intersphinx is happening in sphinx/sphinx/ext/intersphinx.py Line 261 in 4d90277
|
I've had a play patching This is inside the loop on line 319 of the current version
|
Describe the bug
When a doc website A contains a term in a glossary, that term can be referenced without case sensitivity applied. If, however, that term is referenced from a second doc build B, by adding an intersphinx reference to A, only exact cases match.
To Reproduce
Steps to reproduce the behavior:
Add the following intersphinx reference:
Then attempt to reference a term within the glossary from a second project, i.e.
Expected behavior
References to terms in external projects linked through intersphinx resolve in the same way as those defined locally.
Your project
https://github.com/icebreakerone/open-energy-technical-docs contains source, https://icebreakerone.github.io/open-energy-technical-docs/main/index.html is the site containing the manifest from which I'm trying to import terms.
Environment info
Sphinx build run from linux, python 3.8.6, sphinx 4.0.2
The text was updated successfully, but these errors were encountered: