doc-good.out 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. module ./builtin
  2. object q_empty
  3. enum QType
  4. member none
  5. member qnull
  6. member qnum
  7. member qstring
  8. member qdict
  9. member qlist
  10. member qbool
  11. module doc-good.json
  12. enum Enum
  13. member one
  14. if IFONE
  15. feature enum-member-feat
  16. member two
  17. if IFCOND
  18. feature enum-feat
  19. object Base
  20. member base1: Enum optional=False
  21. if {'all': ['IFALL1', 'IFALL2']}
  22. object Variant1
  23. member var1: str optional=False
  24. if IFSTR
  25. feature member-feat
  26. feature variant1-feat
  27. object Variant2
  28. object Object
  29. base Base
  30. tag base1
  31. case one: Variant1
  32. case two: Variant2
  33. if {'any': ['IFONE', 'IFTWO']}
  34. feature union-feat1
  35. alternate Alternate
  36. tag type
  37. case i: int
  38. case b: bool
  39. if {'not': {'any': ['IFONE', 'IFTWO']}}
  40. feature alt-feat
  41. object q_obj_cmd-arg
  42. member arg1: int optional=False
  43. member arg2: str optional=True
  44. member arg3: bool optional=False
  45. command cmd q_obj_cmd-arg -> Object
  46. gen=True success_response=True boxed=False oob=False preconfig=False
  47. feature cmd-feat1
  48. feature cmd-feat2
  49. command cmd-boxed Object -> None
  50. gen=True success_response=True boxed=True oob=False preconfig=False
  51. feature cmd-feat1
  52. feature cmd-feat2
  53. event EVT_BOXED Object
  54. boxed=True
  55. feature feat3
  56. doc freeform
  57. body=
  58. = Section
  59. doc freeform
  60. body=
  61. Just text, no heading.
  62. doc freeform
  63. body=
  64. == Subsection
  65. *with emphasis*
  66. @var {in braces}
  67. * List item one
  68. * Two, multiple
  69. lines
  70. * Three
  71. Still in list
  72. Not in list
  73. - Second list
  74. Note: still in list
  75. Note: not in list
  76. 1. Third list
  77. is numbered
  78. 2. another item
  79. Returns: the King
  80. Since: the first age
  81. Notes:
  82. 1. Lorem ipsum dolor sit amet
  83. 2. Ut enim ad minim veniam
  84. Duis aute irure dolor
  85. Example:
  86. -> in
  87. <- out
  88. Examples:
  89. - *verbatim*
  90. - {braces}
  91. doc symbol=Enum
  92. body=
  93. arg=one
  94. The _one_ {and only}, description on the same line
  95. arg=two
  96. feature=enum-feat
  97. Also _one_ {and only}
  98. feature=enum-member-feat
  99. a member feature
  100. section=Plain
  101. @two is undocumented
  102. doc symbol=Base
  103. body=
  104. arg=base1
  105. description starts on a new line,
  106. minimally indented
  107. doc symbol=Variant1
  108. body=
  109. A paragraph
  110. Another paragraph
  111. @var1 is undocumented
  112. arg=var1
  113. feature=variant1-feat
  114. a feature
  115. feature=member-feat
  116. a member feature
  117. doc symbol=Variant2
  118. body=
  119. doc symbol=Object
  120. body=
  121. feature=union-feat1
  122. a feature
  123. doc symbol=Alternate
  124. body=
  125. arg=i
  126. description starts on the same line
  127. remainder indented the same
  128. @b is undocumented
  129. arg=b
  130. feature=alt-feat
  131. a feature
  132. doc freeform
  133. body=
  134. == Another subsection
  135. doc symbol=cmd
  136. body=
  137. arg=arg1
  138. description starts on a new line,
  139. indented
  140. arg=arg2
  141. description starts on the same line
  142. remainder indented differently
  143. arg=arg3
  144. feature=cmd-feat1
  145. a feature
  146. feature=cmd-feat2
  147. another feature
  148. section=Plain
  149. .. note:: @arg3 is undocumented
  150. section=Returns
  151. @Object
  152. section=Errors
  153. some
  154. section=Todo
  155. frobnicate
  156. section=Plain
  157. .. admonition:: Notes
  158. - Lorem ipsum dolor sit amet
  159. - Ut enim ad minim veniam
  160. Duis aute irure dolor
  161. .. qmp-example::
  162. :title: Ideal fast-food burger situation
  163. -> "in"
  164. <- "out"
  165. Examples::
  166. - Not a QMP code block
  167. - Merely a preformatted code block literal
  168. It isn't even an rST list.
  169. - *verbatim*
  170. - {braces}
  171. Note::
  172. Ceci n'est pas une note
  173. section=Since
  174. 2.10
  175. doc symbol=cmd-boxed
  176. body=
  177. If you're bored enough to read this, go see a video of boxed cats
  178. feature=cmd-feat1
  179. a feature
  180. feature=cmd-feat2
  181. another feature
  182. section=Plain
  183. .. qmp-example::
  184. -> "this example"
  185. <- ... has no title ...
  186. doc symbol=EVT_BOXED
  187. body=
  188. feature=feat3
  189. a feature