Skip to content

Commit

Permalink
Insert signature name into node attribute for use as short headings
Browse files Browse the repository at this point in the history
  • Loading branch information
scottamain committed Oct 24, 2023
1 parent 42d731b commit 6694c4e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions breathe/renderer/sphinxrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,11 @@ def content(contentnode):
assert len(desc) >= 1
sig = desc[0]
assert isinstance(sig, addnodes.desc_signature)

# Insert the member name for use in Sphinx-generated table of contents.
sig.attributes["_toc_name"] = node.get_name()
sig.attributes["_toc_parts"] = node.get_name()

# if may or may not be a multiline signature
isMultiline = sig.get("is_multiline", False)
declarator: Optional[Declarator] = None
Expand Down

0 comments on commit 6694c4e

Please sign in to comment.