Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b40cf3

Browse files
tacaswelltimhoffm
authored andcommitted
Backport PR #11063: Enable sphinx.ext.viewcode
1 parent 136e7d8 commit 2b40cf3

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

doc/_static/mpl.css

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

1013+
.viewcode-link {
1014+
float: right;
1015+
}
1016+
1017+
.viewcode-back {
1018+
float: right;
1019+
font-family: "Helvetica Neue", Helvetica, 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif;
1020+
}
1021+
1022+
div.viewcode-block:target {
1023+
margin: -1px -13px;
1024+
padding: 0 10px;
1025+
border-top: 1px solid #ccc;
1026+
border-bottom: 1px solid #ccc;
1027+
background-color: #f4debf;
1028+
1029+
}
1030+
10131031
.sidebar-announcement {
10141032
border: 1px solid #11557C;
10151033
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)