mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #1159: do not emit duplicate inventory entries for py:module objects.
Also add a workaround on the consumer side in intersphinx, so that links to projects using old versions of Sphinx generate correct links.
This commit is contained in:
@@ -706,4 +706,5 @@ class PythonDomain(Domain):
|
||||
for modname, info in self.data['modules'].iteritems():
|
||||
yield (modname, modname, 'module', info[0], 'module-' + modname, 0)
|
||||
for refname, (docname, type) in self.data['objects'].iteritems():
|
||||
yield (refname, refname, type, docname, refname, 1)
|
||||
if type != 'module': # modules are already handled
|
||||
yield (refname, refname, type, docname, refname, 1)
|
||||
|
||||
Reference in New Issue
Block a user