Lines Matching full:doc
12 qapidoc is a Sphinx extension that implements the qapi-doc directive
17 It implements one new rST directive, "qapi-doc::".
18 Each qapi-doc:: directive takes one argument, which is the
25 https://www.sphinx-doc.org/en/master/development/index.html
259 # without an explicit return statement in the doc block, and we
279 if ent.doc and ent.doc.since:
280 assert ent.doc.since.kind == QAPIDoc.Kind.SINCE
282 self.add_line(f":since: {ent.doc.since.text}", ent.doc.since.info)
285 doc = ent.ifcond.docgen()
288 self.add_line(f":ifcond: {doc}", ent.info)
343 sections = ent.doc.all_sections if ent.doc else []
395 def visit_freeform(self, doc: QAPIDoc) -> None:
402 assert len(doc.all_sections) == 1, doc.all_sections
403 body = doc.all_sections[0]
405 info = doc.info
412 # Implicit +1 for heading in the containing .rst doc
415 # https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#sections
526 for doc in schema.docs:
527 module_source = doc.info.fname
532 if doc.symbol:
533 ent = schema.lookup_entity(doc.symbol)
537 vis.visit_freeform(doc)
596 for doc in schema.docs:
597 if doc.symbol:
598 vis.symbol(doc, schema.lookup_entity(doc.symbol))
600 vis.freeform(doc)
653 doc = self.state.document
655 if hasattr(doc, "findall"):
657 for node in doc.findall(addnodes.highlightlang):
660 for elem in doc.traverse():
724 """Register qapi-doc directive with Sphinx"""
727 app.add_directive("qapi-doc", QAPIDocDirective)