QEMU-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/13] qapi: add formal "intro" section
@ 2026-04-29 19:25 John Snow
  2026-04-29 19:25 ` [PATCH v2 01/13] tests/qapi: generate output in source order John Snow
                   ` (12 more replies)
  0 siblings, 13 replies; 29+ messages in thread
From: John Snow @ 2026-04-29 19:25 UTC (permalink / raw)
  To: qemu-devel
  Cc: Michael Roth, Eric Blake, Marc-André Lureau,
	Richard Henderson, John Snow, Paolo Bonzini,
	Mauro Carvalho Chehab, Michael S. Tsirkin, Peter Maydell,
	Pierrick Bouvier, Igor Mammedov, Gerd Hoffmann, Ani Sinha,
	Philippe Mathieu-Daudé, Markus Armbruster

Hiya, this is a series that explores a potential syntax for a
designated "Intro" section. Markus knows why I want this, but for
everyone else: a designated "Introduction" section is useful for the
desired "inliner" feature for the new QAPI doc system. Commits explain
a bit more. This is prep work and doesn't really change anything
tangibly except source code syntax for the QAPI docs.

It is designed so that this conversion can happen incrementally with
no actual difference to the rendered manuals, so each QAPI module can
be converted one at a time for easier review and merging in an
arbitrary order.

This series demonstrates conversion of just four modules; if I'm given
a thumbs up, I will convert the rest of QAPI, one module (or
maintainer stanza) per patch like how I handled adding
cross-references.

**

V2: punt intro sections to the subsequent line and adjust the parser
accordingly. Left as an RFC patch that undoes some things this series
does instead of properly factoring into the series.

John Snow (13):
  tests/qapi: generate output in source order
  qapi/docs: remove unused QAPIDoc subsection members
  qapi/docs: make remaining subsection members "private"
  qapi/docs: add "Intro" section
  qapi/docs: adjust stub member insertion algorithm
  qapi/docs: remove implicit Plain section
  qapi/docs: add "Intro" section parsing
  qapi/docs: Add rendering for INTRO sections
  qapi: convert intro sections for accelerator.json
  qapi: convert intro sections for acpi-hest.json
  qapi: convert intro sections for acpi.json
  qapi: convert intro sections for audio.json
  rfc: intro starts on next line

 docs/devel/qapi-code-gen.rst   |  17 ++-
 docs/sphinx/qapidoc.py         |  53 +++++----
 qapi/accelerator.json          |  18 +--
 qapi/acpi-hest.json            |   4 +-
 qapi/acpi.json                 |  18 ++-
 qapi/audio.json                |  88 ++++++---------
 scripts/qapi/parser.py         | 198 ++++++++++++++++++++-------------
 tests/qapi-schema/doc-good.out |  30 ++---
 tests/qapi-schema/test-qapi.py |  15 +--
 9 files changed, 231 insertions(+), 210 deletions(-)

-- 
2.54.0




^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2026-05-13  6:27 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29 19:25 [PATCH v2 00/13] qapi: add formal "intro" section John Snow
2026-04-29 19:25 ` [PATCH v2 01/13] tests/qapi: generate output in source order John Snow
2026-05-04  9:50   ` Markus Armbruster
2026-05-04 17:55     ` John Snow
2026-04-29 19:26 ` [PATCH v2 02/13] qapi/docs: remove unused QAPIDoc subsection members John Snow
2026-05-04  9:51   ` Markus Armbruster
2026-04-29 19:26 ` [PATCH v2 03/13] qapi/docs: make remaining subsection members "private" John Snow
2026-05-04  9:54   ` Markus Armbruster
2026-05-04 18:07     ` John Snow
2026-04-29 19:26 ` [PATCH v2 04/13] qapi/docs: add "Intro" section John Snow
2026-04-29 19:26 ` [PATCH v2 05/13] qapi/docs: adjust stub member insertion algorithm John Snow
2026-05-04 11:20   ` Markus Armbruster
2026-05-04 18:30     ` John Snow
2026-05-05 13:54       ` Markus Armbruster
2026-05-04 18:33     ` John Snow
2026-04-29 19:26 ` [PATCH v2 06/13] qapi/docs: remove implicit Plain section John Snow
2026-04-29 19:26 ` [PATCH v2 07/13] qapi/docs: add "Intro" section parsing John Snow
2026-05-04 11:57   ` Markus Armbruster
2026-05-04 18:44     ` John Snow
2026-05-05 13:30       ` Markus Armbruster
2026-04-29 19:26 ` [PATCH v2 08/13] qapi/docs: Add rendering for INTRO sections John Snow
2026-05-04 12:05   ` Markus Armbruster
2026-05-12 21:13     ` John Snow
2026-05-13  6:25       ` Markus Armbruster
2026-04-29 19:26 ` [PATCH v2 09/13] qapi: convert intro sections for accelerator.json John Snow
2026-04-29 19:26 ` [PATCH v2 10/13] qapi: convert intro sections for acpi-hest.json John Snow
2026-04-29 19:26 ` [PATCH v2 11/13] qapi: convert intro sections for acpi.json John Snow
2026-04-29 19:26 ` [PATCH v2 12/13] qapi: convert intro sections for audio.json John Snow
2026-04-29 19:26 ` [PATCH v2 13/13] rfc: intro starts on next line John Snow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox