Skip to content

Commit 44835bf

Browse files
committed
js nodes, update CHANGES and rename variable
1 parent 4220686 commit 44835bf

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CHANGES

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Incompatible changes
1515
* #9672: the signature of
1616
:py:meth:`domains.py.PyObject.get_signature_prefix` has changed to
1717
return a list of nodes instead of a plain string.
18-
* ``domains.js.JSObject.display_prefix`` has been changed into a method
18+
* #9695: ``domains.js.JSObject.display_prefix`` has been changed into a method
1919
``get_display_prefix`` which now returns a list of nodes
2020
instead of a plain string.
21-
* The rendering of Javascript domain declarations is implemented
21+
* #9695: The rendering of Javascript domain declarations is implemented
2222
with more docutils nodes to allow better CSS styling.
2323
It may break existing styling.
2424

@@ -36,7 +36,7 @@ Features added
3636
for :rst:dir:`c:function` and :rst:dir:`c:macro`.
3737
* C++, added new info-field ``retval`` for :rst:dir:`cpp:function`.
3838
* #9672: More CSS classes on Python domain descriptions
39-
* More CSS classes on Javascript domain descriptions
39+
* #9695: More CSS classes on Javascript domain descriptions
4040

4141
Bugs fixed
4242
----------

sphinx/domains/javascript.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ def handle_signature(self, sig: str, signode: desc_signature) -> Tuple[str, str]
9797
if display_prefix:
9898
signode += addnodes.desc_annotation('', '', *display_prefix)
9999

100-
actualPrefix = None
100+
actual_prefix = None
101101
if prefix:
102-
actualPrefix = prefix
102+
actual_prefix = prefix
103103
elif mod_name:
104-
actualPrefix = mod_name
105-
if actualPrefix:
104+
actual_prefix = mod_name
105+
if actual_prefix:
106106
addName = addnodes.desc_addname('', '')
107-
for p in actualPrefix.split('.'):
107+
for p in actual_prefix.split('.'):
108108
addName += addnodes.desc_sig_name(p, p)
109109
addName += addnodes.desc_sig_punctuation('.', '.')
110110
signode += addName

0 commit comments

Comments
 (0)