-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
Milestone
Description
Subject: more than one target found for cross reference should prefer current file's method over other libraries methods
Problem
- When building HTML of our project, Sphinx outputs cca 200 warnings like this. But half of them should be never thrown, because Sphinx is not sure, whether to use current file's one or imported library's one. For example, see:
/src/pywikibot/interwiki_graph.py:docstring of pywikibot.interwiki_graph.GraphDrawer.__init__:: WARNING: more than one target found for cross-reference 'Subject': scripts.interwiki.Subject, pywikibot.interwiki_graph.Subject
The expected one is clear: The one from current file interwiki_graph should be preferred over the imported, but Sphinx still throwns a warning.
Procedure to reproduce the problem
Build HTML of Pywikibot (last build by us: https://integration.wikimedia.org/ci/job/pywikibot-core-tox-publish/424/console) or try to simulate the situation
Error logs / results
/src/pywikibot/interwiki_graph.py:docstring of pywikibot.interwiki_graph.GraphDrawer.__init__:: WARNING: more than one target found for cross-reference 'Subject': scripts.interwiki.Subject, pywikibot.interwiki_graph.Subject
Expected results
It should prefer the current file over the imported one
Reproducible project / your project
Environment info
- OS: Debian Jessie
- Python version: 3.4
- Sphinx version: 1.7.4
- Napoleon, Epytext
Reactions are currently unavailable