Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:``)


Expand Down
8 changes: 7 additions & 1 deletion sphinxcontrib_django/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
Loading