diff --git a/sphinx/domains/__init__.py b/sphinx/domains/__init__.py index eac05327c09..f1adbaf62a5 100644 --- a/sphinx/domains/__init__.py +++ b/sphinx/domains/__init__.py @@ -426,7 +426,16 @@ def intersphinx_add_entries_v2(self, store: Any, that should not be inspected by the domain, but merely returned as a result of reference resolution. - The domain must store the given data in the given *store*, + For example, for Python the data could look like the following. + + .. code-block:: python + + data = { + 'class': {'pkg.mod.Foo': SomeIntersphinxData(...)}, + 'method': {'pkg.mod.Foo.bar': SomeIntersphinxData(...)}, + } + + The domain must store the given inner intersphinx data in the given *store*, in whichever way makes sense for later reference resolution. This *store* was initially a copy of :attr:`initial_intersphinx_inventory`.