aboutsummaryrefslogtreecommitdiff
path: root/hmp-commands-info.hx
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2023-12-12 16:23:13 +0000
committerPeter Maydell <peter.maydell@linaro.org>2024-01-15 17:12:22 +0000
commitd95f260aee3ea1b12779cdede7456480ea9ea3d1 (patch)
treed731d8c81085899f24155f1de2c867fb3eeb488d /hmp-commands-info.hx
parent977542ded7e6b28d2bc077bcda24568c716e393c (diff)
downloadqemu-d95f260aee3ea1b12779cdede7456480ea9ea3d1.zip
qemu-d95f260aee3ea1b12779cdede7456480ea9ea3d1.tar.gz
qemu-d95f260aee3ea1b12779cdede7456480ea9ea3d1.tar.bz2
docs/devel/docs: Document .hx file syntax
We don't currently document the syntax of .hx files anywhere except in a few comments at the top of individual .hx files. We don't even have somewhere in the developer docs where we could do this. Add a new files docs/devel/docs.rst which can be a place to document how our docs build process works. For the moment, put in only a brief introductory paragraph and the documentation of the .hx files. We could later add to this file by for example describing how the QAPI-schema-to-docs process works, or anything else that developers might need to know about how to add documentation. Make the .hx files refer to this doc file, and clean up their header comments to be more accurate for the usage in each file and less cut-n-pasted. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Luc Michel <luc.michel@amd.com> Reviewed-by: David Woodhouse <dwmw@amazon.co.uk> Message-id: 20231212162313.1742462-1-peter.maydell@linaro.org
Diffstat (limited to 'hmp-commands-info.hx')
-rw-r--r--hmp-commands-info.hx10
1 files changed, 5 insertions, 5 deletions
diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx
index f5b37eb..da120f8 100644
--- a/hmp-commands-info.hx
+++ b/hmp-commands-info.hx
@@ -1,8 +1,8 @@
-HXCOMM Use DEFHEADING() to define headings in both help text and rST.
-HXCOMM Text between SRST and ERST is copied to the rST version and
-HXCOMM discarded from C version.
-HXCOMM DEF(command, args, callback, arg_string, help) is used to construct
-HXCOMM monitor info commands
+HXCOMM See docs/devel/docs.rst for the format of this file.
+HXCOMM
+HXCOMM This file defines the contents of an array of HMPCommand structs
+HXCOMM which specify the name, behaviour and help text for HMP commands.
+HXCOMM Text between SRST and ERST is rST format documentation.
HXCOMM HXCOMM can be used for comments, discarded from both rST and C.
HXCOMM
HXCOMM In this file, generally SRST fragments should have two extra