Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc31bc8d

Browse files
committed
docs(sphinx_doctree_signature): Use normal text instead of literal
1 parent3a10585 commitc31bc8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎docs/_ext/sphinx_toctree_signature.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def build_toc(node: Element, depth: int = 1) -> nodes.bullet_list:
116116
ifnodetypein ["function","method"]:
117117
fullname+="()"
118118

119-
nodetext= [nodes.literal(fullname,fullname)]
119+
nodetext= [nodes.Text(fullname)]
120120

121121
ifnotnumentries[0]:
122122
# for the very first toc entry, don't add an anchor
@@ -138,6 +138,7 @@ def build_toc(node: Element, depth: int = 1) -> nodes.bullet_list:
138138
anchorname=anchorname,
139139
*nodetext,
140140
)
141+
141142
para=addnodes.compact_paragraph("","",reference)
142143
item:Element=nodes.list_item("",para)
143144
entries.append(item)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp