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

Skip to content

Commit 5a900e4

Browse files
authored
Merge pull request #11082 from matplotlib/auto-backport-of-pr-11063
Backport PR #11063 on branch v2.2.2-doc
2 parents e94b1cf + 2b40cf3 commit 5a900e4

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
@@ -991,6 +991,24 @@ p.sphx-glr-signature {
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
@@ -37,6 +37,7 @@
3737
'sphinx.ext.doctest',
3838
'sphinx.ext.inheritance_diagram',
3939
'sphinx.ext.intersphinx',
40+
'sphinx.ext.viewcode',
4041
'IPython.sphinxext.ipython_console_highlighting',
4142
'IPython.sphinxext.ipython_directive',
4243
'numpydoc', # Needs to be loaded *after* autodoc.

0 commit comments

Comments
 (0)