mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
docs/qapidoc: remove example section support
Since commit 3c5f6114
(qapi: remove "Example" doc section), Example
sections no longer exist, so this support in qapidoc is now dead code.
Signed-off-by: John Snow <jsnow@redhat.com>
Message-ID: <20250224033741.222749-7-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
b61a4eb3f3
commit
5e4c466e6a
1 changed files with 1 additions and 8 deletions
|
@ -254,10 +254,6 @@ class QAPISchemaGenRSTVisitor(QAPISchemaVisitor):
|
|||
section += dlnode
|
||||
return [section]
|
||||
|
||||
def _nodes_for_example(self, exampletext):
|
||||
"""Return list of doctree nodes for a code example snippet"""
|
||||
return [nodes.literal_block(exampletext, exampletext)]
|
||||
|
||||
def _nodes_for_sections(self, doc):
|
||||
"""Return list of doctree nodes for additional sections"""
|
||||
nodelist = []
|
||||
|
@ -275,10 +271,7 @@ class QAPISchemaGenRSTVisitor(QAPISchemaVisitor):
|
|||
continue
|
||||
|
||||
snode = self._make_section(section.tag)
|
||||
if section.tag.startswith('Example'):
|
||||
snode += self._nodes_for_example(dedent(section.text))
|
||||
else:
|
||||
self._parse_text_into_node(dedent(section.text), snode)
|
||||
self._parse_text_into_node(dedent(section.text), snode)
|
||||
nodelist.append(snode)
|
||||
return nodelist
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue