Debian Codegraph @

documentation/source/lists.rst

raw
1 Lists
2 ======
3
4 Breathe has support for lists in the doxygen documentation. They are output as
5 follows.
6
7 .. cpp:namespace:: @ex_lists_plus
8
9 For unordered lists with list items prefixed with **+**:
10
11 .. code-block:: rst
12
13 .. doxygenclass:: SimpleList_1
14 :project: lists
15
16 It renders as:
17
18 ----
19
20 .. doxygenclass:: SimpleList_1
21 :project: lists
22
23 ----
24
25 .. cpp:namespace:: @ex_lists_dash
26
27 Unordered lists with list items prefixed with **-** render as:
28
29 ----
30
31 .. doxygenclass:: SimpleList_2
32 :project: lists
33
34 ----
35
36 .. cpp:namespace:: @ex_lists_star
37
38 Unordered lists with list items prefixed with **\*** render as:
39
40 ----
41
42 .. doxygenclass:: SimpleList_3
43 :project: lists
44
45 ----
46
47 .. cpp:namespace:: @ex_lists_html
48
49 Unordered lists defined using HTML tags **<ul><li>** render as:
50
51 ----
52
53 .. doxygenclass:: SimpleList_6
54 :project: lists
55
56 ----
57
58 .. cpp:namespace:: @ex_lists_auto
59
60 Auto-numbered lists with list items prefixed with **-#** render as:
61
62 ----
63
64 .. doxygenclass:: SimpleList_4
65 :project: lists
66
67 ----
68
69 .. cpp:namespace:: @ex_lists_arabic
70
71 Numbered lists with list items prefixed with Arabic numerals **1. 2. ...** render as:
72
73 ----
74
75 .. doxygenclass:: SimpleList_5
76 :project: lists
77
78 ----
79
80 .. note::
81 Numbered lists support for the moment only Arabic numerals.
82
83
84 Nested lists are supported in all combinations, as long as they are valid doxygen markup.
85 Below are a couple of examples of different nested lists documentation and their corresponding
86 breathe output.
87
88 .. cpp:namespace:: @ex_lists_nested_1
89
90 Documentation looking like this:
91
92 .. literalinclude:: code/nested_list_1.h
93 :language: cpp
94
95 renders as:
96
97 ----
98
99 .. doxygenclass:: NestedLists_1
100 :project: lists
101
102 ----
103
104 .. cpp:namespace:: @ex_lists_nested_2
105
106 Documentation looking like this:
107
108 .. literalinclude:: code/nested_list_2.h
109 :language: cpp
110
111 renders as:
112
113 ----
114
115 .. doxygenclass:: NestedLists_2
116 :project: lists
117
118 ----
119
120 .. cpp:namespace:: @ex_lists_nested_3
121
122 Documentation looking like this:
123
124 .. literalinclude:: code/nested_list_3.h
125 :language: cpp
126
127 renders as:
128
129 ----
130
131 .. doxygenclass:: NestedLists_3
132 :project: lists
133
134 ----
135
136 .. cpp:namespace:: @ex_lists_nested_4
137
138 Documentation looking like this:
139
140 .. literalinclude:: code/nested_list_4.h
141 :language: cpp
142
143 renders as:
144
145 ----
146
147 .. doxygenclass:: NestedLists_4
148 :project: lists
149
150 ----
151
152 .. cpp:namespace:: @ex_lists_nested_5
153
154 Documentation looking like this:
155
156 .. literalinclude:: code/nested_list_5.h
157 :language: cpp
158
159 renders as:
160
161 ----
162
163 .. doxygenclass:: NestedLists_5
164 :project: lists