diff options
author | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-04-11 20:55:03 +0300 |
---|---|---|
committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-04-12 20:07:51 +0300 |
commit | cb21eb2283b0489adf10cc6799de3be088eb3fe1 (patch) | |
tree | 9ade8eefd62b2f696aec73063951e1dc474b0120 | |
parent | da5b8e41e337064028fb5b321155a8933c91f819 (diff) |
Decl styling, handle desc_inline in manpage and texinfo
-rw-r--r-- | sphinx/writers/manpage.py | 6 | ||||
-rw-r--r-- | sphinx/writers/texinfo.py | 28 |
2 files changed, 28 insertions, 6 deletions
diff --git a/sphinx/writers/manpage.py b/sphinx/writers/manpage.py index a43f117ae..3f0eea5eb 100644 --- a/sphinx/writers/manpage.py +++ b/sphinx/writers/manpage.py @@ -152,6 +152,12 @@ class ManualPageTranslator(SphinxTranslator, BaseTranslator): def depart_desc_content(self, node: Element) -> None: self.depart_definition(node) + def visit_desc_inline(self, node: Element) -> None: + pass + + def depart_desc_inline(self, node: Element) -> None: + pass + # Nodes for high-level structure in signatures ############################################## diff --git a/sphinx/writers/texinfo.py b/sphinx/writers/texinfo.py index cad6f3685..6df558323 100644 --- a/sphinx/writers/texinfo.py +++ b/sphinx/writers/texinfo.py @@ -1367,7 +1367,12 @@ class TexinfoTranslator(SphinxTranslator): self.body.append('\n\n') raise nodes.SkipNode - # -- Desc + ############################################################# + # Domain-specific object descriptions + ############################################################# + + # Top-level nodes for descriptions + ################################## def visit_desc(self, node: addnodes.desc) -> None: self.descs.append(node) @@ -1408,6 +1413,21 @@ class TexinfoTranslator(SphinxTranslator): def depart_desc_signature_line(self, node: Element) -> None: pass + def visit_desc_content(self, node: Element) -> None: + pass + + def depart_desc_content(self, node: Element) -> None: + pass + + def visit_desc_inline(self, node: Element) -> None: + pass + + def depart_desc_inline(self, node: Element) -> None: + pass + + # Nodes for high-level structure in signatures + ############################################## + def visit_desc_name(self, node: Element) -> None: pass @@ -1470,11 +1490,7 @@ class TexinfoTranslator(SphinxTranslator): def depart_desc_annotation(self, node: Element) -> None: pass - def visit_desc_content(self, node: Element) -> None: - pass - - def depart_desc_content(self, node: Element) -> None: - pass + ############################################## def visit_inline(self, node: Element) -> None: pass |