tests/qapi-schema: Fix test 'QAPI rST doc'
[qemu/kevin.git] / tests / qapi-schema / doc-good.txt
blob879f6ff50a20f0329308bac47627db537cf071b4
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 Notes
210 ~~~~~
212 * Lorem ipsum dolor sit amet
214 * Ut enim ad minim veniam
216 Duis aute irure dolor
219 Example
220 ~~~~~~~
222    -> in
223    <- out
226 Examples
227 ~~~~~~~~
229    - *verbatim*
230    - {braces}
233 Since
234 ~~~~~
236 2.10
239 "cmd-boxed" (Command)
240 ---------------------
242 If you're bored enough to read this, go see a video of boxed cats
245 Arguments
246 ~~~~~~~~~
248 The members of "Object"
250 Features
251 ~~~~~~~~
253 "cmd-feat1"
254    a feature
256 "cmd-feat2"
257    another feature
260 Example
261 ~~~~~~~
263    -> in
265    <- out
268 "EVT_BOXED" (Event)
269 -------------------
272 Arguments
273 ~~~~~~~~~
275 The members of "Object"
277 Features
278 ~~~~~~~~
280 "feat3"
281    a feature