diff --git a/_static/highlight.css b/_static/highlight.css new file mode 100644 index 0000000..20d7304 --- /dev/null +++ b/_static/highlight.css @@ -0,0 +1,55 @@ +div.highlight { + background-color: #343131 !important; +} + +div.highlight pre { + border: none; + color: white !important; +} + +div.highlight pre span.n, +div.highlight pre span.na, +div.highlight pre span.nb, +div.highlight pre span.nc, +div.highlight pre span.nf, +div.highlight pre span.nx, +div.highlight pre span.kn { + color: white; +} + +div.highlight pre span.nv { + color: #6ab0de +} + +div.highlight pre span.k, div.highlight pre span.o { + color: #ff8400; +} + +div.highlight pre span.mi, +div.highlight pre span.s, +div.highlight pre span.s1, +div.highlight pre span.s2, +div.highlight pre span.sr { + color: #56db3a; +} + +div.highlight pre span.hll { + background-color: #848484; +} + +div.highlight pre span.hll span.c1 { + color: #d8d8d8; +} + +div.highlight pre span.p { + color: #b3b3b3; +} + +table.highlighttable td { + padding: 0; +} + +table.highlighttable td div.linenodiv { + text-align: right; + width: 38px; +} diff --git a/conf.py b/conf.py index cf68c17..2be1dd0 100644 --- a/conf.py +++ b/conf.py @@ -152,7 +152,10 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -#html_static_path = ['_static'] +html_static_path = ['_static'] + +def setup(app): + app.add_stylesheet('highlight.css') # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied