-
Notifications
You must be signed in to change notification settings - Fork 132
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
Non working internal links for manually added anchors in 0.9.2 #748
Comments
fixes problems with links in nbsphinx 0.9.2 but breaks due to non unique labels spatialaudio/nbsphinx#748
This is just a warning, so you are getting the correct HTML output, right? If you want to silence the warning, I think you can put that into your suppress_warnings = ['ref.ref'] The reason for this warning is that Sphinx is not aware of those manual anchors. BTW, if possible, I would just try to change the section titles slightly to avoid ambiguities. |
No it’s not just a warning. With 0.9.1 this produces working links with this does not produce working links |
Sorry, I haven't read your original report thoroughly enough, I have now seen that you have mentioned that already. I have tried it with This may be related to the Your header looks like this in the generated HTML: <h2>Table of Contents<a class="headerlink" href="#Table-of-Contents" title="Permalink to this heading">#</a></h2> If your [LinkInSameCell](linkexample.html#link) Note the |
@mgeier Thanks I will try that when I have a sec (or it may simply be a better option to rework my notebooks to avoid duplicated headings) |
In 0.9.2 I am seeing a warning about undefined labels for internal links starting with # when building the html version of my docs and the links are not working.
A minimal notebook that triggers this behavior is something like the following
This triggers warnings like the ones below and does not generate working links.
This used to work with 0.9.1 and I have bisected this to break with #725
It seems that if I remove the manual anchors from my notebook and use the automatically generated ones this works fine. However due to the way my notebook is structured (with an introduction to each term and a longer section) these are not always unique causing the link to be to the wrong location
The text was updated successfully, but these errors were encountered: