]> git.ipfire.org Git - thirdparty/qemu.git/commit
docs/qapidoc: add :namespace: option to qapi-doc directive
authorJohn Snow <jsnow@redhat.com>
Thu, 13 Mar 2025 04:43:07 +0000 (00:43 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 14 Mar 2025 06:31:57 +0000 (07:31 +0100)
commitb1df602ebbd06d56311a77d195284216263b13f8
tree41998ac376eeb49cf7a77c1c63ab70af2db107d6
parent7c7247b252dd8b3911b96451c0eaaebbc6ac0af0
docs/qapidoc: add :namespace: option to qapi-doc directive

Add a :namespace: option to the qapi-doc directive, which inserts a
qapi:namespace directive into the start of the generated document. This,
in turn, associates all auto-generated definitions by this directive
with the specified namespace.

The source info for these generated lines are credited to the start of
the qapi-doc directive, which isn't precisely correct, but I wasn't sure
how to get it more accurate without some re-parsing shenanigans.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-ID: <20250313044312.189276-7-jsnow@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
docs/sphinx/qapidoc.py