| 1 |
|
| 2 |
.. _page-example: |
| 3 |
|
| 4 |
doxygenpage Directive |
| 5 |
===================== |
| 6 |
|
| 7 |
This directive generates the appropriate output for the contents of a doxygen |
| 8 |
page. A doxygen page is created for each "key" of every \\xrefitem command used |
| 9 |
for markup in the source comments. For more information check the |
| 10 |
`doxygen documentation`_. |
| 11 |
|
| 12 |
It takes the standard ``project`` and ``path`` options. |
| 13 |
|
| 14 |
.. code-block:: rst |
| 15 |
|
| 16 |
.. doxygenpage:: <page name> |
| 17 |
:project: ... |
| 18 |
:path: ... |
| 19 |
|
| 20 |
.. _doxygen documentation: https://www.doxygen.nl/manual/commands.html#cmdxrefitem |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
Basic Example |
| 25 |
------------- |
| 26 |
|
| 27 |
.. cpp:namespace:: @ex_page_basic |
| 28 |
|
| 29 |
The plain ``doxygenpage`` directive will output the page name and description |
| 30 |
and any variable entries which were defined to be part of this page (with an |
| 31 |
\xrefitem usage). |
| 32 |
|
| 33 |
.. code-block:: rst |
| 34 |
|
| 35 |
.. doxygenpage:: xrefsample |
| 36 |
:project: xrefsect |
| 37 |
|
| 38 |
It produces this output: |
| 39 |
|
| 40 |
.. doxygenpage:: xrefsample |
| 41 |
:project: xrefsect |
| 42 |
|
| 43 |
|
| 44 |
Failing Example |
| 45 |
--------------- |
| 46 |
|
| 47 |
.. cpp:namespace:: @ex_page_failing |
| 48 |
|
| 49 |
This intentionally fails: |
| 50 |
|
| 51 |
.. code-block:: rst |
| 52 |
|
| 53 |
.. doxygengroup:: madeuppage |
| 54 |
:project: xrefsect |
| 55 |
|
| 56 |
It produces the following warning message: |
| 57 |
|
| 58 |
.. warning:: |
| 59 |
Cannot find file "madeuppage" in doxygen xml output for project |
| 60 |
"xrefsect" from directory: ../../examples/specific/xrefsect/xml/ |