-
-
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
Duplicate explicit target name errors #3921
Comments
Unfortunately, it is a part of spec of reST.
Please use anonymous reference instead:
|
Double underlines - ya gotta love it! Thanks for the response. This is right up there with requiring a space after the text and before the < of the URL. When I was first learning RST I pulled my hair out trying to figure out why none of my links worked! That will be my next request to change, when I get around to it. |
It would be nice if some lint tool is given :-) |
There were duplicate explicit target name errors in the README. Learn more here, sphinx-doc/sphinx#3921.
* Fix "Duplicate explicit target name" warnings on extending_draftail.rst ref: sphinx-doc/sphinx#3921 * Fix 'Unknown target name' warning on third_party_tutorials.rst * Add docstrings to Page.get_ancestors, get_descendants and get_siblings Documents the `inclusive` flag and avoids the "Field list ends without a blank line; unexpected unindent" warning when building docs
sphinx-doc/sphinx#3921 (comment) Omformulerer også noe for å slippe å si "home page", og "click here". Bedre med at lenken havner på Adekvat Frase™ i tekst fremfor at teksten selv "vet" at den er en lenke.
to avoid errors with named links changed the links to double underscored `__` references sphinx-doc/sphinx#3921 (comment)
I was unable to find anything about "anonymous references" in the Sphinx docs. If anyone reads this I would appreciate a pointer. This seems like a pretty easy issue to run into so I expected to see it mentioned here: https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#hyperlinks |
Use anonymous reference for GNATS web link so that it doesn't conflict with name of internal link. See sphinx-doc/sphinx#3921.
When building the docs, Sphinx will emit a warning if two links have the same text. This is a weird constraint but apparently it's part of the ReST spec. This commit fixes this by using double-underscore links. More explanation: sphinx-doc/sphinx#3921
solution found in sphinx-doc/sphinx#3921
…r all but one of them on the same page - which is __ rather that _ - you gotta love RST! - sphinx-doc/sphinx#3921
Issue in the reST spec, see sphinx-doc/sphinx#3921 (comment) for more information. Fixes/prevents "duplicate explicit target name" errors.
Apparently Sphinx doesn't like that we use the same name multiple times, though the link pointed to different URLs. sphinx-doc/sphinx#3921 (comment) suggests using `__` for "anonymous references". This will remove some of the github action comments that show for every PR. Signed-off-by: Christoph Wurst <[email protected]>
Apparently Sphinx doesn't like that we use the same name multiple times, though the link pointed to different URLs. sphinx-doc/sphinx#3921 (comment) suggests using `__` for "anonymous references". This will remove some of the github action comments that show for every PR. Signed-off-by: Christoph Wurst <[email protected]>
use `name <link>`__ instead of `name <link>`_ as per sphinx-doc/sphinx#3921
to account for sphinx-doc/sphinx#3921
Subject: Getting "Duplicate explicit target name" errors
Problem
Procedure to reproduce the problem
Error logs / results
Expected results
No errors
Reproducible project / your project
Add lines like these to your file:
Environment info
The text was updated successfully, but these errors were encountered: