forked from sphinx-doc/sphinx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow case-insensitive match of label-refs through intersphinx
Look up `:std:label:` object types case-insensitively in an intersphinx inventory. This is needed because `ref` and `numref` references (which both resolve to `:std:label:`) are case insensitive. They lowercase their target under the assumption that the target name in any inventory file is also lowercased. That assumption holds for labels in inventory files generated by Sphinx from `.rst` files, since it generates lowercase labels. However, other documentation generators (such as the Julia Documenter.jl, which also writes `objects.inv` inventory files as of version 1.3) use mixed-case labels for section title. With the change in this commit, if the lowercase label cannot be found in the inventory, also try a case-insensitive match. See sphinx-doc#12008
- Loading branch information
Showing
3 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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