Skip to content

Commit 1b21a0a

Browse files
authored
[Docs] Fix Sphinx parameter permalink positioning (#21734)
Fix Sphinx parameter permalink positioning
1 parent c863ae5 commit 1b21a0a

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* Keep sphinx_paramlinks anchors inline under the Lightning API theme. */
2+
article.pytorch-article .field-list .anchorjs-link {
3+
display: inline;
4+
position: static;
5+
right: auto;
6+
font-size: 1em !important;
7+
padding-left: 0.25em;
8+
vertical-align: baseline;
9+
}

docs/source-pytorch/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ def setup(app):
509509
# see: http://z4r.github.io/python/2011/12/02/hides-the-prompts-and-output/
510510
app.add_js_file("copybutton.js")
511511
app.add_css_file("main.css")
512+
app.add_css_file("paramlinks.css", priority=800)
512513

513514

514515
# copy all notebooks to local folder

0 commit comments

Comments
 (0)