Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Lykke Andersen <Jakob@caput.dk>2021-03-20 20:02:07 +0300
committerJakob Lykke Andersen <Jakob@caput.dk>2021-04-12 20:07:51 +0300
commitc1da955df2f14ffc5a686b8724d46369abf847d4 (patch)
tree145aa97db90b0b60597dec12b2e7bab75ccf96b3 /sphinx/addnodes.py
parent86eeee5031008bb0da73332cd8dd28bd3c9e5aed (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.py3
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