Added viewcode plugin for source code visualization within the static website.

This commit is contained in:
LysandreJik
2019-07-09 17:01:56 -04:00
parent 83fb311ef7
commit 331db8cc02
3 changed files with 17 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
.highlight .c1{ .highlight .c1, .highlight .sd{
color: #999 color: #999
} }
.highlight .nn, .highlight .k, .highlight .s1, .highlight .nb, .highlight .bp { .highlight .nn, .highlight .k, .highlight .s1, .highlight .nb, .highlight .bp, .highlight .kc {
color: #FB8D68; color: #FB8D68;
} }
.highlight .kn, .highlight .nv, .highlight .s2 { .highlight .kn, .highlight .nv, .highlight .s2, .highlight .ow {
color: #6670FF; color: #6670FF;
} }

View File

@@ -104,6 +104,18 @@ a {
background-color: #6670FF; background-color: #6670FF;
} }
/* Source spans */
.rst-content .viewcode-link, .rst-content .viewcode-back{
color: #6670FF;
font-size: 110%;
letter-spacing: 2px;
text-transform: uppercase;
}
/* FONTS */ /* FONTS */
body{ body{
font-family: Calibre; font-family: Calibre;

View File

@@ -42,8 +42,8 @@ extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
'sphinx.ext.coverage', 'sphinx.ext.coverage',
'sphinx.ext.napoleon', 'sphinx.ext.napoleon',
'recommonmark' 'recommonmark',
'sphinx.ext.viewcode'
] ]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.