Skip to content

Commit

Permalink
doc: minor polish for (auto)doxygenfile
Browse files Browse the repository at this point in the history
Add the newly implemented :sections: option to the directives overview,
:outline: is also added to doxygenfile, which was missing for some
reason.

The example for :sections: is formatted to match the rest of the page's
layout.

See also #501.
  • Loading branch information
vermeeren committed Apr 18, 2020
1 parent 74fbdc9 commit 12abc27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions documentation/source/directives.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ file.
.. doxygenfile:: <filename>
:project: ...
:path: ...
:outline:
:no-link:
:sections:

Checkout the :ref:`example <file-example>` to see it in action.

Expand All @@ -164,6 +166,7 @@ It handles the doxygen xml generation for you like the other auto directives.
:project: ...
:outline:
:no-link:
:sections:

Checkout the :ref:`example <autodoxygenfile-example>` to see it in action.

Expand Down
11 changes: 7 additions & 4 deletions documentation/source/file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ Example with Selected and Ordered Sections

.. cpp:namespace:: @ex_file_section

The following will only show the **briefdescription** and **public-type** sections, in that order.
The following will only show the **briefdescription** and **public-type**
sections, in that order::

.. doxygenfile:: nutshell.h
:project: nutshell
:sections: briefdescription public-type
.. doxygenfile:: nutshell.h
:project: nutshell
:sections: briefdescription public-type

It produces this output:

----

Expand Down

0 comments on commit 12abc27

Please sign in to comment.