Skip to content
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

Intersphinx warning: multiple definitions for std:label:examples/Widget Layout.ipynb#display #3930

Open
maxnoe opened this issue Jul 15, 2024 · 4 comments

Comments

@maxnoe
Copy link

maxnoe commented Jul 15, 2024

Description

The intersphinx inventory contains duplicated definitions

Reproduce

Include ipywidgets in the intersphinx config, build documentation.

The build warns about duplicated definitions:

loading intersphinx inventory 'ipywidgets' from https://ipywidgets.readthedocs.io/en/stable/objects.inv...
WARNING: inventory <https://ipywidgets.readthedocs.io/en/stable/> contains multiple definitions for std:label:examples/Widget Layout.ipynb#display

Expected behavior

No duplicated object definitions, no warnings

@maxnoe
Copy link
Author

maxnoe commented Jul 15, 2024

To reproduce quickly:

❯ python -m sphinx.ext.intersphinx https://ipywidgets.readthedocs.io/en/stable/objects.inv | grep 'Widget Layout.ipynb#display'
WARNING:sphinx.sphinx.util.inventory:inventory <> contains multiple definitions for std:label:examples/Widget Layout.ipynb#display
    examples/Widget Layout.ipynb#display     display                                 : examples/Widget%20Layout.html#id1

@douglas-raillard-arm
Copy link

Hitting this as well: https://gitlab.arm.com/tooling/lisa/-/jobs/71175/raw:

loading intersphinx inventory 'IPython' from https://ipython.readthedocs.io/en/stable/objects.inv...
WARNING: inventory <https://ipywidgets.readthedocs.io/en/latest/> contains multiple definitions for std:label:examples/Widget Layout.ipynb#display

with latest sphinx on python 3.9

@maxnoe
Copy link
Author

maxnoe commented Jul 15, 2024

github-actions bot pushed a commit to ARM-software/lisa that referenced this issue Jul 15, 2024
@douglas-raillard-arm
Copy link

That's what I did, but it has the unfortunate side effect that sphinx will now never complain about any broken intersphinx cross reference, even for the packages that have a working inventory. I'm relying on that in the CI to ensure we don't make typos and accidentally break links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants