Anonymous domain hook anonymous link target and store targets into objects.inv.
objects.inv not have anonymous link targets.
For example index.rst:
.. _named-label:
Welcome to spam's documentation!
================================
.. _anon-label:
ham! egg! spam!
and 'make html' generate objects.inv like below:
u'std:label': {u'genindex': (u'spam', u'1.0', u'genindex.html#', u'Index'),
u'modindex': (u'spam',
u'1.0',
u'py-modindex.html#',
u'Module Index'),
u'named-label': (u'spam',
u'1.0',
u'index.html#named-label',
u"Welcome to spam's documentation!"),
u'search': (u'spam', u'1.0', u'search.html#', u'Search Page')}
This objects.inv not have 'anon-label' then another sphinx can not link to 'anon-label' by using sphinx.ext.intersphinx.
AnonimousDomain (ext_anon_domain.py) support generating all label targets in objects.inv.
For example:
u'anon:label': {u'anon-label': (u'spam',
u'1.0',
u'index.html#anon-label',
u'-'),
u'named-label': (u'spam',
u'1.0',
u'index.html#named-label',
u'-')},
u'std:label': {u'genindex': (u'spam', u'1.0', u'genindex.html#', u'Index'),
u'modindex': (u'spam',
u'1.0',
u'py-modindex.html#',
u'Module Index'),
u'named-label': (u'spam',
u'1.0',
u'index.html#named-label',
u"Welcome to spam's documentation!"),
u'search': (u'spam', u'1.0', u'search.html#', u'Search Page')}
and you can reference by:
this is :anon:ref:`anon-label`.