mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #1050: Add anonymous labels into `objects.inv
` to be referenced via intersphinx.
This commit is contained in:
parent
48524dcecc
commit
8436f07c40
3
CHANGES
3
CHANGES
@ -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
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user