diff mbox series

[36/42] qapi/parser: add "meta" kind to QAPIDoc.Kind

Message ID 20250205231208.1480762-37-jsnow@redhat.com (mailing list archive)
State New
Headers show
Series docs: add sphinx-domain rST generator to qapidoc | expand

Commit Message

John Snow Feb. 5, 2025, 11:12 p.m. UTC
This adds a "META" category for sections, for the express purpose of
adding empty branch-start and branch-end sections into a linear section list
for the purpose of rendering collapsible branches in sphinx HTML output.

This is ... a little hacky. Sorry.

Signed-off-by: John Snow <jsnow@redhat.com>
---
 scripts/qapi/parser.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/scripts/qapi/parser.py b/scripts/qapi/parser.py
index 5890a13b5ba..c92bbc908e7 100644
--- a/scripts/qapi/parser.py
+++ b/scripts/qapi/parser.py
@@ -678,6 +678,7 @@  class Kind(enum.Enum):
         SINCE = 5
         TODO = 6
         DETAIL = 7
+        META = 8
 
         @staticmethod
         def from_string(kind: str) -> 'QAPIDoc.Kind':