Closes #1050: Add anonymous labels into `objects.inv` to be referenced via intersphinx.

This commit is contained in:
Georg Brandl 2014-01-11 20:54:42 +01:00
parent 48524dcecc
commit 8436f07c40
2 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,9 @@ Bugs fixed
* #949: Update the tabulary.sty packed with Sphinx. * #949: Update the tabulary.sty packed with Sphinx.
* #1050: Add anonymous labels into ``objects.inv`` to be referenced via
intersphinx.
Documentation Documentation
------------- -------------

View File

@ -612,6 +612,11 @@ class StandardDomain(Domain):
self.object_types[type].attrs['searchprio']) self.object_types[type].attrs['searchprio'])
for name, info in self.data['labels'].iteritems(): for name, info in self.data['labels'].iteritems():
yield (name, info[2], 'label', info[0], info[1], -1) yield (name, info[2], 'label', info[0], info[1], -1)
# add anonymous-only labels as well
non_anon_labels = set(self.data['labels'])
for name, info in self.data['anonlabels'].iteritems():
if name not in non_anon_labels:
yield (name, name, 'label', info[0], info[1], -1)
def get_type_name(self, type, primary=False): def get_type_name(self, type, primary=False):
# never prepend "Default" # never prepend "Default"