Add filenames as captions for code blocks

This commit is contained in:
Adam Scott
2024-10-27 16:18:36 -04:00
parent 2164b06eb2
commit 44dfb3a390
12 changed files with 64 additions and 77 deletions

View File

@@ -169,6 +169,7 @@ ones, the following rules should be followed:
Example:
.. code-block:: cpp
:caption: my_new_file.h
/**************************************************************************/
/* my_new_file.h */
@@ -214,6 +215,7 @@ Example:
#endif // MY_NEW_FILE_H
.. code-block:: cpp
:caption: my_new_file.cpp
/**************************************************************************/
/* my_new_file.cpp */