diff options
author | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-03-20 20:02:07 +0300 |
---|---|---|
committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-04-12 20:07:51 +0300 |
commit | c1da955df2f14ffc5a686b8724d46369abf847d4 (patch) | |
tree | 145aa97db90b0b60597dec12b2e7bab75ccf96b3 /sphinx/addnodes.py | |
parent | 86eeee5031008bb0da73332cd8dd28bd3c9e5aed (diff) |
Decl styling, use a post-transform to get the domain name in the desc_signature nodes
Diffstat (limited to 'sphinx/addnodes.py')
-rw-r--r-- | sphinx/addnodes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/addnodes.py b/sphinx/addnodes.py index 69d11eb53..23cf0acb8 100644 --- a/sphinx/addnodes.py +++ b/sphinx/addnodes.py @@ -158,8 +158,9 @@ class desc_signature(_desc_classes_injector, nodes.Part, nodes.Inline, nodes.Tex Set ``is_multiline = True`` to describe a multi-line signature. In that case all child nodes must be :py:class:`desc_signature_line` nodes. - This node always has the classes ``sig`` and ``sig-object``. + This node always has the classes ``sig``, ``sig-object``, and the domain it belongs to. """ + # Note: the domain name is being added through a post-transform DescSigAddDomainAsClass classes = ['sig', 'sig-object'] @property |