mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
napoleon: Add aliases Warn and Raise
This commit is contained in:
parent
e4c3e24e85
commit
1a865069db
1
CHANGES
1
CHANGES
@ -14,6 +14,7 @@ Features added
|
||||
--------------
|
||||
|
||||
* #7853: C and C++, support parameterized GNU style attributes.
|
||||
* #7888: napoleon: Add aliases Warn and Raise.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
@ -115,6 +115,7 @@ All of the following section headers are supported:
|
||||
* ``Parameters``
|
||||
* ``Return`` *(alias of Returns)*
|
||||
* ``Returns``
|
||||
* ``Raise`` *(alias of Raises)*
|
||||
* ``Raises``
|
||||
* ``References``
|
||||
* ``See Also``
|
||||
@ -122,6 +123,7 @@ All of the following section headers are supported:
|
||||
* ``Todo``
|
||||
* ``Warning``
|
||||
* ``Warnings`` *(alias of Warning)*
|
||||
* ``Warn`` *(alias of Warns)*
|
||||
* ``Warns``
|
||||
* ``Yield`` *(alias of Yields)*
|
||||
* ``Yields``
|
||||
|
@ -162,6 +162,7 @@ class GoogleDocstring:
|
||||
'parameters': self._parse_parameters_section,
|
||||
'return': self._parse_returns_section,
|
||||
'returns': self._parse_returns_section,
|
||||
'raise': self._parse_raises_section,
|
||||
'raises': self._parse_raises_section,
|
||||
'references': self._parse_references_section,
|
||||
'see also': self._parse_see_also_section,
|
||||
@ -169,6 +170,7 @@ class GoogleDocstring:
|
||||
'todo': partial(self._parse_admonition, 'todo'),
|
||||
'warning': partial(self._parse_admonition, 'warning'),
|
||||
'warnings': partial(self._parse_admonition, 'warning'),
|
||||
'warn': self._parse_warns_section,
|
||||
'warns': self._parse_warns_section,
|
||||
'yield': self._parse_yields_section,
|
||||
'yields': self._parse_yields_section,
|
||||
|
Loading…
Reference in New Issue
Block a user