Translate Doxygen code blocks to Sphinx code blocks.
This ensures they are formatted correctly and syntax highlighted (currently always as C++ code).
This commit is contained in:
parent
0f21adf3f9
commit
d678891e43
5 changed files with 65 additions and 4 deletions
|
|
@ -50,7 +50,10 @@ commentVerifier.check(doxygen_basic_translate.function4.__doc__,
|
|||
|
||||
Warning: This may not work as expected
|
||||
|
||||
int main() { while(true); }
|
||||
.. code-block:: c++
|
||||
|
||||
|
||||
int main() { while(true); }
|
||||
|
||||
}
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -36,7 +36,11 @@ r"""
|
|||
|
||||
'citationword'
|
||||
|
||||
some test code
|
||||
|
||||
.. code-block:: c++
|
||||
|
||||
some test code
|
||||
|
||||
""")
|
||||
|
||||
commentVerifier.check(doxygen_translate_all_tags.func02.__doc__,
|
||||
|
|
|
|||
|
|
@ -22,7 +22,11 @@ r"""
|
|||
|
||||
'citationword'
|
||||
|
||||
some test code
|
||||
|
||||
.. code-block:: c++
|
||||
|
||||
some test code
|
||||
|
||||
|
||||
Conditional comment: SOMECONDITION
|
||||
Some conditional comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue