-
Notifications
You must be signed in to change notification settings - Fork 130
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
Version 0.2.15 breaks build (in case of duplicate domain objects) #142
Comments
I see the same thing when building docs for https://github.com/libAtoms/QUIP |
Build breaks with nbsphinx==0.2.15 so use a working version. Track the bug at spatialaudio/nbsphinx#142 Also fix warning from video.py
I see the same on readthedocs for https://github.com/xilinx/PYNQ https://readthedocs.org/projects/pynq-testing/builds/6230240/ |
If there are domain objects with the same name in a single document, Sphinx only creates an anchor tag for the first one, so the 'ids' of the subsequent ones will be empty. We only need to create a label for the first one, as the others aren't linkable anyway. Fixes spatialaudio#142.
Looks like it's caused by duplicate domain objects. For example, the PYNQ error seems to be caused by For example, see http://pynq.readthedocs.io/en/v2.0/pynq_package/pynq.gpio.html - There are 2 versions of For QUIP, it seems to be caused by multiple This isn't a problem with these libraries but a bug in |
Thanks @clenk for the quick fix! |
I've just created a new release: https://pypi.python.org/pypi/nbsphinx/0.2.16 |
Works for me, thanks! |
thanks -- no more failing builds with 0.2.16 |
If there are domain objects with the same name in a single document, Sphinx only creates an anchor tag for the first one, so the 'ids' of the subsequent ones will be empty. We only need to create a label for the first one, as the others aren't linkable anyway. Fixes #142.
Hi -- just tried upgrading to 0.2.15, and a previously working sphinx build now breaks with the following error:
Exception occurred:
File "/home/joe-h/miniconda3/envs/bmll-docs/lib/python3.6/site-packages/nbsphinx.py", line 1099, in apply
title = sig['ids'][0]
IndexError: list index out of range
log
sphinx-err-f73pf565.log
file attached
The text was updated successfully, but these errors were encountered: