Skip to content

Warning about duplicate definitions in intersphinx mapping #12585

@maxnoe

Description

@maxnoe

Describe the bug

We recently started getting warnings about duplicate definition in intersphinx, from two upstream projects:

Sklearn maintainers suspect this to be a sphinx bug, so I am opening this issue here.

How to Reproduce

$ pip list | grep  Sphinx
Sphinx                        7.4.2
$ python -m sphinx.ext.intersphinx https://scikit-learn.org/stable/objects.inv | grep "    y "
WARNING:sphinx.sphinx.util.inventory:inventory <> contains multiple definitions for std:term:y
    y        

and

$ 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

Environment Information

Sphinx 7.4.2

Sphinx extensions

intersphinx

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions