8000 Merge pull request #11063 from timhoffm/sphinx-ext-viewcode · matplotlib/matplotlib@f78ee3f · GitHub
[go: up one dir, main page]

Skip to content

Commit f78ee3f

Browse files
authored
Merge pull request #11063 from timhoffm/sphinx-ext-viewcode
DOC: Enable sphinx.ext.viewcode
2 parents 7e073a0 + 28e6542 commit f78ee3f

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
@@ -971,6 +971,24 @@ p.sphx-glr-signature a.reference.external {
971971
font-weight: 400;
972972
}
973973

974+
.viewcode-link {
975+
float: right;
976+
}
977+
978+
.viewcode-back {
979+
float: right;
980+
font-family: "Helvetica Neue", Helvetica, 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif;
981+
}
982+
983+
div.viewcode-block:target {
984+
margin: -1px -13px;
985+
padding: 0 10px;
986+
border-top: 1px solid #ccc;
987+
border-bottom: 1px solid #ccc;
988+
background-color: #f4debf;
989+
990+
}
991+
974992
.sidebar-announcement {
975993
border: 1px solid #11557C;
976994
background: #eff9ff;

doc/conf.py

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

0 commit comments

Comments
 (0)
0