Skip to content

Commit aa55c96

Browse files
tacaswellMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #11063: Enable sphinx.ext.viewcode
1 parent 7e6922d commit aa55c96

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

doc/_static/mpl.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,24 @@ p.sphx-glr-signature a.reference.external {
991991
font-weight: 400;
992992
}
993993

994+
.viewcode-link {
995+
float: right;
996+
}
997+
998+
.viewcode-back {
999+
float: right;
1000+
font-family: "Helvetica Neue", Helvetica, 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif;
1001+
}
1002+
1003+
div.viewcode-block:target {
1004+
margin: -1px -13px;
1005+
padding: 0 10px;
1006+
border-top: 1px solid #ccc;
1007+
border-bottom: 1px solid #ccc;
1008+
background-color: #f4debf;
1009+
1010+
}
1011+
9941012
.sidebar-announcement {
9951013
border: 1px solid #11557C;
9961014
background: #eff9ff;

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
'sphinx.ext.doctest',
3535
'sphinx.ext.inheritance_diagram',
3636
'sphinx.ext.intersphinx',
37+
'sphinx.ext.viewcode',
3738
'IPython.sphinxext.ipython_console_highlighting',
3839
'IPython.sphinxext.ipython_directive',
3940
'numpydoc', # Needs to be loaded *after* autodoc.

0 commit comments

Comments
 (0)