qapi: remove "Example" doc section
[qemu/armbru.git] / tests / qapi-schema / doc-good.txt
blobcb37db606a6299e55f0abc4c6aadbd893470a803
1 Section
2 *******
5 Subsection
6 ==========
8 *with emphasis* "var" {in braces}
10 * List item one
12 * Two, multiple lines
14 * Three Still in list
16 Not in list
18 * Second list Note: still in list
20 Note: not in list
22 1. Third list is numbered
24 2. another item
26 Returns: the King Since: the first age Notes:
28 1. Lorem ipsum dolor sit amet
30 2. Ut enim ad minim veniam
32 Duis aute irure dolor
34 Example:
36 -> in <- out Examples: - *verbatim* - {braces}
39 "Enum" (Enum)
40 -------------
43 Values
44 ~~~~~~
46 "one" (**If: **"IFONE")
47    The _one_ {and only}, description on the same line
49 "two"
50    Not documented
53 Features
54 ~~~~~~~~
56 "enum-feat"
57    Also _one_ {and only}
59 "enum-member-feat"
60    a member feature
62 "two" is undocumented
68 "IFCOND"
71 "Base" (Object)
72 ---------------
75 Members
76 ~~~~~~~
78 "base1": "Enum"
79    description starts on a new line, minimally indented
85 "IFALL1 and IFALL2"
88 "Variant1" (Object)
89 -------------------
91 A paragraph
93 Another paragraph
95 "var1" is undocumented
98 Members
99 ~~~~~~~
101 "var1": "string" (**If: **"IFSTR")
102    Not documented
105 Features
106 ~~~~~~~~
108 "variant1-feat"
109    a feature
111 "member-feat"
112    a member feature
115 "Variant2" (Object)
116 -------------------
119 "Object" (Object)
120 -----------------
123 Members
124 ~~~~~~~
126 The members of "Base"
127 The members of "Variant1" when "base1" is ""one""
128 The members of "Variant2" when "base1" is ""two"" (**If: **"IFONE or
129 IFTWO")
131 Features
132 ~~~~~~~~
134 "union-feat1"
135    a feature
138 "Alternate" (Alternate)
139 -----------------------
142 Members
143 ~~~~~~~
145 "i": "int"
146    description starts on the same line remainder indented the same "b"
147    is undocumented
149 "b": "boolean"
150    Not documented
153 Features
154 ~~~~~~~~
156 "alt-feat"
157    a feature
163 "not (IFONE or IFTWO)"
166 Another subsection
167 ==================
170 "cmd" (Command)
171 ---------------
174 Arguments
175 ~~~~~~~~~
177 "arg1": "int"
178    description starts on a new line, indented
180 "arg2": "string" (optional)
181    description starts on the same line remainder indented differently
183 "arg3": "boolean"
184    Not documented
187 Features
188 ~~~~~~~~
190 "cmd-feat1"
191    a feature
193 "cmd-feat2"
194    another feature
196 Note:
198   "arg3" is undocumented
201 Returns
202 ~~~~~~~
204 "Object"
207 Errors
208 ~~~~~~
210 some
212 Notes:
214 * Lorem ipsum dolor sit amet
216 * Ut enim ad minim veniam
218 Duis aute irure dolor
220 Example: Ideal fast-food burger situation:
222    -> "in"
223    <- "out"
225 Examples:
227    - Not a QMP code block
228    - Merely a preformatted code block literal
229    It isn't even an rST list.
230    - *verbatim*
231    - {braces}
233 Note::
234    Ceci n'est pas une note
237 Since
238 ~~~~~
240 2.10
243 "cmd-boxed" (Command)
244 ---------------------
246 If you're bored enough to read this, go see a video of boxed cats
249 Arguments
250 ~~~~~~~~~
252 The members of "Object"
254 Features
255 ~~~~~~~~
257 "cmd-feat1"
258    a feature
260 "cmd-feat2"
261    another feature
263 Example::
265    -> "this example"
267    <- "has no title"
270 "EVT_BOXED" (Event)
271 -------------------
274 Arguments
275 ~~~~~~~~~
277 The members of "Object"
279 Features
280 ~~~~~~~~
282 "feat3"
283    a feature