You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
… is not 'py'
Autodoc generates reST code that uses raw `:obj:` and `:class:` xrefs to
refer the classes and types. But they're fragile because they assume
the primary_domain=='py'. This adds `:py:` prefix to these xrefs to
make thme robust.
tk0miya
added a commit
to tk0miya/sphinx
that referenced
this issue
Sep 14, 2021
…imary_domain is not 'py'
Autosummary generates reST code that uses raw `:obj:` xrefs to refer
the python objects in the summary table. But they're fragile because
they assume the primary_domain=='py'. This adds `:py:` prefix to
these xrefs to make thme robust.
…imary_domain is not 'py'
Autosummary generates reST code that uses raw `:obj:` xrefs to refer
the python objects in the summary table. But they're fragile because
they assume the primary_domain=='py'.
This adds `:py:` prefix to these xrefs to make them robust.
Describe the bug
autosummary expects the
primary_domain
to bepy
. Otherwise, it gives warnings like these:for each
.. autosummary::
directive.In the HTML documentation there are broken links with the text
for every
.. autosummary::
directive.How to Reproduce
(TBC)
Expected behavior
I would expect
autosummary
to work regardless of theprimary_domain
configuration.Your project
(TBC)
Screenshots
OS
Linux
Python version
3.9.7
Sphinx version
4.2.0 and earlier
Sphinx extensions
No response
Extra tools
No response
Additional context
This was originally reported in #2001, but it was not sufficiently well described and was perhaps prematurely closed.
The text was updated successfully, but these errors were encountered: