Merge tag 'v9.0.0-rc3'
[qemu/ar7.git] / tests / qapi-schema / doc-good.txt
blob847db70412dca45d8943035d835f78c760d6961d
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
197 Note
198 ~~~~
200 "arg3" is undocumented
203 Returns
204 ~~~~~~~
206 "Object"
209 Errors
210 ~~~~~~
212 some
215 Notes
216 ~~~~~
218 * Lorem ipsum dolor sit amet
220 * Ut enim ad minim veniam
222 Duis aute irure dolor
225 Example
226 ~~~~~~~
228    -> in
229    <- out
232 Examples
233 ~~~~~~~~
235    - *verbatim*
236    - {braces}
239 Since
240 ~~~~~
242 2.10
245 "cmd-boxed" (Command)
246 ---------------------
248 If you're bored enough to read this, go see a video of boxed cats
251 Arguments
252 ~~~~~~~~~
254 The members of "Object"
256 Features
257 ~~~~~~~~
259 "cmd-feat1"
260    a feature
262 "cmd-feat2"
263    another feature
266 Example
267 ~~~~~~~
269    -> in
271    <- out
274 "EVT_BOXED" (Event)
275 -------------------
278 Arguments
279 ~~~~~~~~~
281 The members of "Object"
283 Features
284 ~~~~~~~~
286 "feat3"
287    a feature