|
@@ -33,7 +33,7 @@
|
|
|
from sphinx.locale import _, __
|
|
|
from sphinx.roles import XRefRole
|
|
|
from sphinx.util import logging
|
|
|
-from sphinx.util.docfields import TypedField
|
|
|
+from sphinx.util.docfields import GroupedField, TypedField
|
|
|
from sphinx.util.nodes import make_id, make_refnode
|
|
|
|
|
|
|
|
@@ -220,6 +220,16 @@ class QAPIObject(QAPIDescription):
|
|
|
}
|
|
|
)
|
|
|
|
|
|
+ doc_field_types = [
|
|
|
+ # :feat name: descr
|
|
|
+ GroupedField(
|
|
|
+ "feature",
|
|
|
+ label=_("Features"),
|
|
|
+ names=("feat",),
|
|
|
+ can_collapse=False,
|
|
|
+ ),
|
|
|
+ ]
|
|
|
+
|
|
|
def get_signature_prefix(self) -> List[nodes.Node]:
|
|
|
"""Return a prefix to put before the object name in the signature."""
|
|
|
assert self.objtype
|