|
@@ -30,6 +30,13 @@ nor the documentation output.
|
|
|
|
|
|
``SRST`` starts a reStructuredText section. Following lines
|
|
``SRST`` starts a reStructuredText section. Following lines
|
|
are put into the documentation verbatim, and discarded from the C output.
|
|
are put into the documentation verbatim, and discarded from the C output.
|
|
|
|
+The alternative form ``SRST()`` is used to define a label which can be
|
|
|
|
+referenced from elsewhere in the rST documentation. The label will take
|
|
|
|
+the form ``<DOCNAME-HXFILE-LABEL>``, where ``DOCNAME`` is the name of the
|
|
|
|
+top level rST file, ``HXFILE`` is the filename of the .hx file without
|
|
|
|
+the ``.hx`` extension, and ``LABEL`` is the text provided within the
|
|
|
|
+``SRST()`` directive. For example,
|
|
|
|
+``<system/invocation-qemu-options-initrd>``.
|
|
|
|
|
|
``ERST`` ends the documentation section started with ``SRST``,
|
|
``ERST`` ends the documentation section started with ``SRST``,
|
|
and switches back to a C code section.
|
|
and switches back to a C code section.
|
|
@@ -53,8 +60,9 @@ text, but in ``hmp-commands.hx`` the C code sections are elements
|
|
of an array of structs of type ``HMPCommand`` which define the
|
|
of an array of structs of type ``HMPCommand`` which define the
|
|
name, behaviour and help text for each monitor command.
|
|
name, behaviour and help text for each monitor command.
|
|
|
|
|
|
-In the file ``qemu-options.hx``, do not try to define a
|
|
|
|
|
|
+In the file ``qemu-options.hx``, do not try to explicitly define a
|
|
reStructuredText label within a documentation section. This file
|
|
reStructuredText label within a documentation section. This file
|
|
is included into two separate Sphinx documents, and some
|
|
is included into two separate Sphinx documents, and some
|
|
versions of Sphinx will complain about the duplicate label
|
|
versions of Sphinx will complain about the duplicate label
|
|
-that results.
|
|
|
|
|
|
+that results. Use the ``SRST()`` directive documented above, to
|
|
|
|
+emit an unambiguous label.
|