Use Sphinx-friendly formatting for overloaded functions documentation.
Sphinx doesn't allow sections inside the function documentation and gives tons of SEVERE warnings for them, so while just emphasizing the "Overload" header is not ideal, it is better than before because at least the string "Overload" itself appears in the Sphinx-generated output.
This commit is contained in:
parent
eaf63ba47d
commit
ea1d56da67
4 changed files with 9 additions and 26 deletions
|
|
@ -28,15 +28,13 @@ commentVerifier.check(doxygen_basic_notranslate.function2.__doc__,
|
|||
|
||||
commentVerifier.check(doxygen_basic_notranslate.function3.__doc__,
|
||||
r"""
|
||||
----------------------------------------------------------------
|
||||
Overload 1:
|
||||
----------------------------------------------------------------
|
||||
*Overload 1:*
|
||||
|
||||
A test for overloaded functions
|
||||
This is function \b one
|
||||
|
||||
----------------------------------------------------------------
|
||||
Overload 2:
|
||||
----------------------------------------------------------------
|
||||
*Overload 2:*
|
||||
|
||||
A test for overloaded functions
|
||||
This is function \b two
|
||||
|
||||
|
|
|
|||
|
|
@ -26,15 +26,13 @@ commentVerifier.check(doxygen_basic_translate.function2.__doc__,
|
|||
)
|
||||
commentVerifier.check(doxygen_basic_translate.function3.__doc__,
|
||||
"""
|
||||
----------------------------------------------------------------
|
||||
Overload 1:
|
||||
----------------------------------------------------------------
|
||||
*Overload 1:*
|
||||
|
||||
A test for overloaded functions
|
||||
This is function **one**
|
||||
|
||||
----------------------------------------------------------------
|
||||
Overload 2:
|
||||
----------------------------------------------------------------
|
||||
*Overload 2:*
|
||||
|
||||
A test for overloaded functions
|
||||
This is function **two**
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue