diff --git a/README.rst b/README.rst index b7b200a..bc01922 100644 --- a/README.rst +++ b/README.rst @@ -43,7 +43,7 @@ Improvements for the output of Sphinx's autodoc for Django classes: * Add information about autogenerated methods * Fix intersphinx mappings to Django modules * Custom text roles to cross-reference the documentations of Django (``:setting:``, - ``:templatetag:``, ``:templatefilter:``, ``:fieldlookup:``) and Sphinx (``:event:``, + ``:templatetag:``, ``:templatefilter:``, ``:fieldlookup:``, ``:django-admin:``) and Sphinx (``:event:``, ``:confval:``) diff --git a/sphinxcontrib_django/roles.py b/sphinxcontrib_django/roles.py index 8f66d12..2580a96 100644 --- a/sphinxcontrib_django/roles.py +++ b/sphinxcontrib_django/roles.py @@ -54,7 +54,13 @@ def setup(app: sphinx.application.Sphinx) -> dict: app.connect("config-inited", add_default_intersphinx_mappings) # Allow intersphinx mappings to custom Django roles - django_crossref_types = ["setting", "templatetag", "templatefilter", "fieldlookup"] + django_crossref_types = [ + "setting", + "templatetag", + "templatefilter", + "fieldlookup", + "django-admin", + ] # Allow intersphinx mappings to custom Sphinx roles sphinx_crossref_types = ["event", "confval"]