Skip to contentSkip to conversation

qapi: Fixes related to change of doc heading markup

PATCH In review Markus Armbruster 1 participant 4 messages Jul 24, 2025 – Jul 29, 2025

lore
Share & tools
lore
#0 lore raw

cover qapi: Fixes related to change of doc heading markup

Markus Armbruster (2):
qapi/accelerator: Fix markup of heading tests/qapi-schema: Bury dead test case doc-non-first-section

 qapi/accelerator.json                        | 4 +++-
 tests/qapi-schema/doc-non-first-section.err  | 1 -
 tests/qapi-schema/doc-non-first-section.json | 6 ------
 tests/qapi-schema/doc-non-first-section.out  | 0
 4 files changed, 3 insertions(+), 8 deletions(-)
 delete mode 100644 tests/qapi-schema/doc-non-first-section.err
 delete mode 100644 tests/qapi-schema/doc-non-first-section.json
 delete mode 100644 tests/qapi-schema/doc-non-first-section.out
Signature · 1 line
2.49.0
#1 lore raw

PATCH 1/2 qapi/accelerator: Fix markup of heading

The docs generated for qapi/accelerator.json shows text "= Accelerators" instead of a heading. This is because the patch that added the heading crossed with the commit that changed heading markup (commit 6c10778826a "docs/sphinx: remove special parsing for freeform sections"). Fix the markup.

Fixes 18da42ee4273 (qapi/accel: Move definitions related to accelerators in their own file)
---
 qapi/accelerator.json | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
qapi/accelerator.json +3 -1
index 28d5ff4c49..fb28c8d920 100644
@@ -4,7 +4,9 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 ##
-# = Accelerators
+# ************
+# Accelerators
+# ************
 ##
 
 { 'include': 'common.json' }
Signature · 1 line
2.49.0
#2 lore raw

PATCH 2/2 tests/qapi-schema: Bury dead test case doc-non-first-section

In reply to Markus Armbruster

The test passed when it was added. However, the commit adding it neglected to make Meson aware of it, so it never ran automatically. The test stopped making sense when we changed headings markup, and ceased to pass then. It should've been removed then. Do that now.

Fixes 6c10778826a8 (docs/sphinx: remove special parsing for freeform sections)
---
 tests/qapi-schema/doc-non-first-section.err  | 1 -
 tests/qapi-schema/doc-non-first-section.json | 6 ------
 tests/qapi-schema/doc-non-first-section.out  | 0
 3 files changed, 7 deletions(-)
 delete mode 100644 tests/qapi-schema/doc-non-first-section.err
 delete mode 100644 tests/qapi-schema/doc-non-first-section.json
 delete mode 100644 tests/qapi-schema/doc-non-first-section.out
tests/qapi-schema/doc-non-first-section.err deleted +0 -1
deleted file mode 100644
index eeced2bca7..0000000000
@@ -1 +0,0 @@
-doc-non-first-section.json:5:1: '=' heading must come first in a comment block
tests/qapi-schema/doc-non-first-section.json deleted +0 -6
deleted file mode 100644
index 1590876061..0000000000
@@ -1,6 +0,0 @@
-# = section must be first line
-
-##
-#
-# = Not first
-##
tests/qapi-schema/doc-non-first-section.out deleted +0 -0
deleted file mode 100644
index e69de29bb2..0000000000
Signature · 1 line
2.49.0