Skip to content

Commit

Permalink
Decl styling, handle desc_inline in manpage and texinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobandersen committed Apr 12, 2021
1 parent da5b8e4 commit cb21eb2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
6 changes: 6 additions & 0 deletions sphinx/writers/manpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ def visit_desc_content(self, node: Element) -> None:
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
##############################################

Expand Down
28 changes: 22 additions & 6 deletions sphinx/writers/texinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,12 @@ def visit_acks(self, node: Element) -> None:
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)
Expand Down Expand Up @@ -1408,6 +1413,21 @@ def visit_desc_signature_line(self, node: Element) -> None:
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

Expand Down Expand Up @@ -1470,11 +1490,7 @@ def visit_desc_annotation(self, node: Element) -> None:
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
Expand Down

0 comments on commit cb21eb2

Please sign in to comment.