Skip to content

Commit c94dc47

Browse files
committed
enable sphinx.ext.viewcode
1 parent 5daabdd commit c94dc47

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

doc/_static/mpl.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,10 @@ p.sphx-glr-signature a.reference.external {
971971
font-weight: 400;
972972
}
973973

974+
.viewcode-link {
975+
margin-left: 0.5em;
976+
}
977+
974978
.sidebar-announcement {
975979
border: 1px solid #11557C;
976980
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)