mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
docs/qapidoc: generate entries for undocumented members
Presently, we never have any empty text entries for members. The next patch will explicitly generate such sections, so enable support for it in advance. The parser will generate placeholder sections to indicate undocumented members, but it's the qapidoc generator that's responsible for deciding what to do with that stub section. Signed-off-by: John Snow <jsnow@redhat.com> Message-ID: <20250311034303.75779-59-jsnow@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> [Tweak the stub section text] Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
1884492e64
commit
565274da10
1 changed files with 3 additions and 2 deletions
|
@ -233,11 +233,12 @@ class Transmogrifier:
|
|||
# TODO: features for members (documented at entity-level,
|
||||
# but sometimes defined per-member. Should we add such
|
||||
# information to member descriptions when we can?)
|
||||
assert section.text and section.member
|
||||
assert section.member
|
||||
self.generate_field(
|
||||
self.member_field_type,
|
||||
section.member,
|
||||
section.text,
|
||||
# TODO drop fallbacks when undocumented members are outlawed
|
||||
section.text if section.text else "Not documented",
|
||||
section.info,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue