Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging
[qemu/ar7.git] / tests / qapi-schema / doc-good.texi
blob2526abc6d9416cea5f0dc2f2a9d5075ebec4f891
1 @c AUTOMATICALLY GENERATED, DO NOT MODIFY
3 @section Section
5 @subsection Subsection
7 @strong{strong} @emph{with emphasis}
8 @code{var} @{in braces@}
9 @itemize @bullet
10 @item
11 List item one
12 @item
13 Two, multiple
14 lines
16 @item
17 Three
18 Still in list
20 @end itemize
22 Not in list
23 @itemize @minus
24 @item
25 Second list
26 Note: still in list
28 @end itemize
30 Note: not in list
31 @enumerate
32 @item
33 Third list
34 is numbered
36 @item
37 another item
39 @example
40 example
41 @end example
43 @example
44 multiple lines
45 @end example
48 @end enumerate
50 Returns: the King
51 Since: the first age
52 Notes:
54 @enumerate
55 @item
56 Lorem ipsum dolor sit amet
58 @item
59 Ut enim ad minim veniam
61 @end enumerate
63 Duis aute irure dolor
65 Example:
67 -> in
68 <- out
69 Examples:
70 @itemize @minus
71 @item
72 @strong{verbatim}
73 @item
74 @{braces@}
75 @end itemize
79 @deftp {Enum} Enum
83 @b{Values:}
84 @table @asis
85 @item @code{one}
86 The @emph{one} @{and only@}
87 @*@b{If:} @code{defined(IFONE)}
88 @item @code{two}
89 Not documented
90 @end table
91 @code{two} is undocumented
93 @b{If:} @code{defined(IFCOND)}
94 @end deftp
98 @deftp {Object} Base
102 @b{Members:}
103 @table @asis
104 @item @code{base1: Enum}
105 the first member
106 @end table
108 @end deftp
112 @deftp {Object} Variant1
114 A paragraph
116 Another paragraph (but no @code{var}: line)
118 @b{Members:}
119 @table @asis
120 @item @code{var1: string}
121 Not documented
122 @*@b{If:} @code{defined(IFSTR)}
123 @end table
125 @end deftp
129 @deftp {Object} Variant2
133 @end deftp
137 @deftp {Object} Object
141 @b{Members:}
142 @table @asis
143 @item The members of @code{Base}
144 @item The members of @code{Variant1} when @code{base1} is @t{"one"}
145 @item The members of @code{Variant2} when @code{base1} is @t{"two"} (@b{If:} @code{IFTWO})
146 @end table
148 @end deftp
152 @deftp {Object} SugaredUnion
156 @b{Members:}
157 @table @asis
158 @item @code{type}
159 One of @t{"one"}, @t{"two"}
160 @item @code{data: Variant1} when @code{type} is @t{"one"}
161 @item @code{data: Variant2} when @code{type} is @t{"two"} (@b{If:} @code{IFTWO})
162 @end table
164 @end deftp
167 @subsection Another subsection
170 @deftypefn Command {} cmd
174 @b{Arguments:}
175 @table @asis
176 @item @code{arg1: int}
177 the first argument
178 @item @code{arg2: string} (optional)
179 the second
180 argument
181 @item @code{arg3: boolean}
182 Not documented
183 @end table
185 @b{Note:}
186 @code{arg3} is undocumented
188 @b{Returns:}
189 @code{Object}
191 @b{TODO:}
192 frobnicate
194 @b{Notes:}
195 @itemize @minus
196 @item
197 Lorem ipsum dolor sit amet
198 @item
199 Ut enim ad minim veniam
201 @end itemize
203 Duis aute irure dolor
205 @b{Example:}
206 @example
207 -> in
208 <- out
209 @end example
211 @b{Examples:}
212 @example
213 - *verbatim*
214 - @{braces@}
215 @end example
217 @b{Since:}
218 2.10
220 @end deftypefn
224 @deftypefn Command {} cmd-boxed
226 If you're bored enough to read this, go see a video of boxed cats
228 @b{Arguments:} the members of @code{Object}
230 @b{Example:}
231 @example
232 -> in
234 <- out
235 @end example
237 @end deftypefn