-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
References not picking correct entry #9689
Comments
I confirmed your error with this Dockerfile:
On building the document, I saw the following warnings. It says footnote numbers are conflicted. For example, both
I'm not sure this is a bug. How about separating a page? |
Oh, didn't know that those reference were global. I however see that other docs still use repeated reference names which work locally within a given class, such as this one (reference TPT2011): Is there some difference that I am missing between the docs in the description and the ones here above? |
In Sphinx and reStructuredText, both footnotes and citation definitions should not be duplicated. So both they are warned. Indeed, citation references are built as hyperlinked. But links are not correct. The |
Describe the bug
References not picking correct entry
I have a Python project with NumPy-style docstrings which uses numbered references like
[1]_
and then a section calledReferences
with entries like.. [1]
. Usually, these are rendered as a clickable superscript which takes to the reference in the references section when clicked, but if theindex.rst
contains internal hyperlinks (not 100% sure that's the culprit), these references ([1]_
) will not render as clickacle superscripts anymore, but will rather take to some non-existing internal (same-page) link.Example: https://cmfrec.readthedocs.io/en/latest/
Ctrl+F for
add_implicit_features
for a case that doesn't render properly, andscale_lam
for a case that does.How to Reproduce
Not sure.
Expected behavior
No response
Your project
https://cmfrec.readthedocs.io/en/latest/
Screenshots
No response
OS
Linux
Python version
3.7.9
Sphinx version
4.2.0
Sphinx extensions
No response
Extra tools
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: