-
-
Notifications
You must be signed in to change notification settings - Fork 165
BUG?: References always have an errant second link #169
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
Comments
On
I checked out the commit that immediately preceded #136 (21a194e) and it still occurs and looks like:
So the problem appears to precede your PR. |
thanks for thoroughly debunking my kneejerk guess! I see that you're right.
I can fix the bug locally by reverting 0970cdb.
firstly this may be deemed a sphinx/docutils bug since the backref is used
despite being in a LaTeX only environment.
Secondly we only need this hack where a reference is not otherwise cited,
but that solution may be a bit hacky.
|
Maybe we should look at what HTML and LaTeX PDFs are produced by this only-add-ref-if-needed solution? It seems like the easier route. |
another way this might work nicely is by hacking the doctree rather than
the reST. sorry I only have time to throw out ideas and not to implement atm
|
Another option might be to pass builder information into SphinxDocString and only generate this latex-only code if in a latex builder, rather than relying on reST directives. |
The fix in #180 simply removes backreferences where the reference does not exist. |
Why do the references have a link that points nowhere? For example for this:
http://scipy.github.io/devdocs/generated/scipy.signal.windows.dpss.html#id1
Each ref is used once but there are two links, the second of which points to a tag that does not seem to exist.
The text was updated successfully, but these errors were encountered: