qemu/qapi
Markus Armbruster e389929d19 sphinx/qapidoc: Fix to generate doc for explicit, unboxed arguments
When a command's arguments are specified as an explicit type T,
generated documentation points to the members of T.

Example:

    ##
    # @announce-self:
    #
    # Trigger generation of broadcast RARP frames to update network
    [...]
    ##
    { 'command': 'announce-self', 'boxed': true,
      'data' : 'AnnounceParameters'}

generates

    "announce-self" (Command)
    -------------------------

    Trigger generation of broadcast RARP frames to update network
    [...]

    Arguments
    ~~~~~~~~~

    The members of "AnnounceParameters"

Except when the command takes its arguments unboxed , i.e. it doesn't
have 'boxed': true, we generate *nothing*.  A few commands have a
reference in their doc comment to compensate, but most don't.

Example:

    ##
    # @blockdev-snapshot-sync:
    #
    # Takes a synchronous snapshot of a block device.
    #
    # For the arguments, see the documentation of BlockdevSnapshotSync.
    [...]
    ##
    { 'command': 'blockdev-snapshot-sync',
      'data': 'BlockdevSnapshotSync',
      'allow-preconfig': true }

generates

    "blockdev-snapshot-sync" (Command)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Takes a synchronous snapshot of a block device.

    For the arguments, see the documentation of BlockdevSnapshotSync.
    [...]

Same for event data.

Fix qapidoc.py to generate the reference regardless of boxing.  Delete
now redundant references in the doc comments.

Fixes: 4078ee5469 (docs/sphinx: Add new qapi-doc Sphinx extension)
Cc: qemu-stable@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240628112756.794237-1-armbru@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
2024-07-06 08:58:24 +02:00
..
acpi.json
audio.json
authz.json
block-core.json sphinx/qapidoc: Fix to generate doc for explicit, unboxed arguments 2024-07-06 08:58:24 +02:00
block-export.json
block.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
char.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
common.json
compat.json
control.json qapi: add markup to note blocks 2024-07-06 08:58:24 +02:00
crypto.json
cryptodev.json
cxl.json hw/cxl/events: Mark cxl-add-dynamic-capacity and cxl-release-dynamic-capcity unstable 2024-07-03 18:14:07 -04:00
dump.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
ebpf.json
error.json
introspect.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
job.json
machine-common.json
machine-target.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
machine.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
meson.build qapi/vfio: Add VFIO migration QAPI event 2024-05-16 16:59:19 +02:00
migration.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
misc-target.json i386/sev: Update query-sev QAPI format to handle SEV-SNP 2024-06-05 11:01:06 +02:00
misc.json qapi: add markup to note blocks 2024-07-06 08:58:24 +02:00
net.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
opts-visitor.c qapi: Inline and remove QERR_INVALID_PARAMETER definition 2024-04-24 09:50:58 +02:00
pci.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
pragma.json
qapi-clone-visitor.c qapi: Do not cast function pointers 2024-05-29 12:41:56 +02:00
qapi-dealloc-visitor.c
qapi-forward-visitor.c
qapi-schema.json qapi/vfio: Add VFIO migration QAPI event 2024-05-16 16:59:19 +02:00
qapi-type-helpers.c
qapi-util.c
qapi-visit-core.c
qdev.json qapi: add markup to note blocks 2024-07-06 08:58:24 +02:00
qmp-dispatch.c Revert "monitor: use aio_co_reschedule_self()" 2024-06-10 11:05:43 +02:00
qmp-event.c
qmp-registry.c
qobject-input-visitor.c qapi: Inline QERR_INVALID_PARAMETER_TYPE definition (constant value) 2024-04-24 09:50:58 +02:00
qobject-output-visitor.c
qom.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
replay.json
rocker.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
run-state.json qapi: add markup to note blocks 2024-07-06 08:58:24 +02:00
sockets.json qapi: add markup to note blocks 2024-07-06 08:58:24 +02:00
stats.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
string-input-visitor.c qapi: Inline QERR_INVALID_PARAMETER_TYPE definition (constant value) 2024-04-24 09:50:58 +02:00
string-output-visitor.c
tpm.json
trace-events
trace.h
trace.json trace: Remove deprecated 'vcpu' field from QMP trace events 2024-06-04 11:53:43 +02:00
transaction.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
ui.json qapi: add markup to note blocks 2024-07-06 08:58:24 +02:00
vfio.json qapi/vfio: Add VFIO migration QAPI event 2024-05-16 16:59:19 +02:00
virtio.json qapi: convert "Note" sections to plain rST 2024-07-06 08:58:24 +02:00
yank.json