Document sphinxext.roles · matplotlib/matplotlib@3fe382d · GitHub
Skip to content

Commit 3fe382d

Browse files
committed
Document sphinxext.roles
1 parent 8e95749 commit 3fe382d

4 files changed

Lines changed: 66 additions & 9 deletions

File tree

doc/api/index.rst

Lines changed: 1 addition & 0 deletions

doc/api/next_api_changes/development/28289-ES.rst

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,5 @@ Documentation-specific custom Sphinx roles are now semi-public
33

44
For third-party packages that derive types from Matplotlib, our use of custom roles may
55
prevent Sphinx from building their docs. These custom Sphinx roles are now public solely
6-
for the purposes of use within projects that derive from Matplotlib types, and may be
7-
added to Sphinx via ``conf.py``::
8-
9-
extensions = [
10-
'matplotlib.sphinxext.roles',
11-
# Other extensions.
12-
]
13-
14-
Any other use of these roles is not supported.
6+
for the purposes of use within projects that derive from Matplotlib types. See
7+
:mod:`matplotlib.sphinxext.roles` for details.

doc/api/sphinxext_roles.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
==============================
2+
``matplotlib.sphinxext.roles``
3+
==============================
4+
5+
.. automodule:: matplotlib.sphinxext.roles
6+
:no-undoc-members:
7+
:private-members: _rcparam_role, _mpltype_role

lib/matplotlib/sphinxext/roles.py

Lines changed: 56 additions & 0 deletions

0 commit comments

Comments
 (0)