aboutsummaryrefslogtreecommitdiff
path: root/docs/devel/qapi-code-gen.rst
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2023-04-28 12:54:18 +0200
committerMarkus Armbruster <armbru@redhat.com>2023-05-09 09:10:14 +0200
commitf57e1d05bfaf2f41f0793280886ebf1db753794f (patch)
treef677e908b64b55679275cb0671bcf40c1caf7c20 /docs/devel/qapi-code-gen.rst
parentb71fd73cc459ce1ef545a40ff8fbce5ff242b103 (diff)
downloadqemu-f57e1d05bfaf2f41f0793280886ebf1db753794f.zip
qemu-f57e1d05bfaf2f41f0793280886ebf1db753794f.tar.gz
qemu-f57e1d05bfaf2f41f0793280886ebf1db753794f.tar.bz2
sphinx/qapidoc: Do not emit TODO sections into user manuals
QAPI doc comments are for QMP users: they go into the "QEMU QMP Reference Manual" and the "QEMU Storage Daemon QMP Reference Manual". The doc comment TODO sections are for somebody else, namely for the people who can do: developers. Do not emit them into the user manuals. This elides the following TODOs: * SchemaInfoCommand # TODO: @success-response (currently irrelevant, because it's QGA, not QMP) This is a note to developers adding introspection to the guest agent. It makes no sense to users. * @query-hotpluggable-cpus # TODO: Better documentation; currently there is none. This is a reminder for developers. It doesn't help users. * @device_add # TODO: This command effectively bypasses QAPI completely due to its # "additional arguments" business. It shouldn't have been added to # the schema in this form. It should be qapified properly, or # replaced by a properly qapified command. Likewise. Eliding them is an improvement. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20230428105429.1687850-7-armbru@redhat.com> Reviewed-by: Ani Sinha <anisinha@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'docs/devel/qapi-code-gen.rst')
-rw-r--r--docs/devel/qapi-code-gen.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/devel/qapi-code-gen.rst b/docs/devel/qapi-code-gen.rst
index ff7b74b..6386b58 100644
--- a/docs/devel/qapi-code-gen.rst
+++ b/docs/devel/qapi-code-gen.rst
@@ -1007,8 +1007,9 @@ A "Since: x.y.z" tagged section lists the release that introduced the
definition.
An "Example" or "Examples" section is automatically rendered entirely
-as literal fixed-width text. In other sections, the text is
-formatted, and rST markup can be used.
+as literal fixed-width text. "TODO" sections are not rendered at all
+(they are for developers, not users of QMP). In other sections, the
+text is formatted, and rST markup can be used.
For example::