Add a standalone "Since:" documentation section, with usage example.
Signed-off-by: John Snow <[email protected]> --- docs/devel/qapi-code-gen.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/devel/qapi-code-gen.rst b/docs/devel/qapi-code-gen.rst index 977ed1aa3bd..fcb52ce157e 100644 --- a/docs/devel/qapi-code-gen.rst +++ b/docs/devel/qapi-code-gen.rst @@ -1034,8 +1034,6 @@ detailing a relevant error condition. For example:: # - If @device does not exist, DeviceNotFound # - Any other error returns a GenericError. -A "Since: x.y" tagged section lists the release that introduced the -definition. In other sections, the text is formatted, and rST markup can be used. @@ -1088,6 +1086,17 @@ Highlighting in non-QMP languages can be accomplished by using the achieved by omitting the language argument. +Since +^^^^^ + +A "Since: x.y" section lists the release that introduced the +definition:: + + # + # Since: 11.2 + # + + TODO ^^^^ -- 2.55.0
