mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Close #9664: autodoc: autodoc-process-bases supports reST snippet
This allows to inject a reST snippet through autodoc-process-bases event. It helps to modify the base classes of any class to the expected mark-up'ed text by custom extension.
This commit is contained in:
@@ -768,8 +768,6 @@ needed docstring processing in event :event:`autodoc-process-docstring`:
|
||||
|
||||
.. event:: autodoc-process-bases (app, name, obj, options, bases)
|
||||
|
||||
.. versionadded:: 4.1
|
||||
|
||||
Emitted when autodoc has read and processed a class to determine the
|
||||
base-classes. *bases* is a list of classes that the event handler can
|
||||
modify **in place** to change what Sphinx puts into the output. It's
|
||||
@@ -781,6 +779,12 @@ needed docstring processing in event :event:`autodoc-process-docstring`:
|
||||
:param options: the options given to the class directive
|
||||
:param bases: the list of base classes signature. see above.
|
||||
|
||||
.. versionadded:: 4.1
|
||||
.. versionchanged:: 4.3
|
||||
|
||||
``bases`` can contain a string as a base class name. It will be processed
|
||||
as reST mark-up'ed text.
|
||||
|
||||
|
||||
Skipping members
|
||||
----------------
|
||||
|
||||
Reference in New Issue
Block a user