aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2014-08-28 00:00:31 -0400
committerbnewbold <bnewbold@robocracy.org>2014-08-28 00:03:13 -0400
commitdaa3d15c401eece51c14f3553282581eb1b4c954 (patch)
tree7d45e78b0706baecd0555e664c7aa4da69a7e4a0 /docs/source
parent84fb63e479685ef5b63612237289f86106a46a97 (diff)
downloadlibrambutan-daa3d15c401eece51c14f3553282581eb1b4c954.tar.gz
librambutan-daa3d15c401eece51c14f3553282581eb1b4c954.zip
docs: add dark solarized pygments style (WIP)
Really this should be installed as a proper pygments style and selected as such in conf.py. The way this patch works two full .css files get loaded and the second (solarized) clobbers the default.
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/_static/pygments-solarized-dark.css70
-rw-r--r--docs/source/_static/rambutan-docs.css2
-rw-r--r--docs/source/conf.py3
3 files changed, 73 insertions, 2 deletions
diff --git a/docs/source/_static/pygments-solarized-dark.css b/docs/source/_static/pygments-solarized-dark.css
new file mode 100644
index 0000000..45421a3
--- /dev/null
+++ b/docs/source/_static/pygments-solarized-dark.css
@@ -0,0 +1,70 @@
+/* From: https://gist.github.com/tdreyno/1125708 */
+.highlight .hll { background-color: #ffffcc }
+.highlight .c { color: #586E75 } /* Comment */
+.highlight .err { color: #93A1A1 } /* Error */
+.highlight .g { color: #93A1A1 } /* Generic */
+.highlight .k { color: #859900 } /* Keyword */
+.highlight .l { color: #93A1A1 } /* Literal */
+.highlight .n { color: #93A1A1 } /* Name */
+.highlight .o { color: #859900 } /* Operator */
+.highlight .x { color: #CB4B16 } /* Other */
+.highlight .p { color: #93A1A1 } /* Punctuation */
+.highlight .cm { color: #586E75 } /* Comment.Multiline */
+.highlight .cp { color: #859900 } /* Comment.Preproc */
+.highlight .c1 { color: #586E75 } /* Comment.Single */
+.highlight .cs { color: #859900 } /* Comment.Special */
+.highlight .gd { color: #2AA198 } /* Generic.Deleted */
+.highlight .ge { color: #93A1A1; font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #DC322F } /* Generic.Error */
+.highlight .gh { color: #CB4B16 } /* Generic.Heading */
+.highlight .gi { color: #859900 } /* Generic.Inserted */
+.highlight .go { color: #93A1A1 } /* Generic.Output */
+.highlight .gp { color: #93A1A1 } /* Generic.Prompt */
+.highlight .gs { color: #93A1A1; font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #CB4B16 } /* Generic.Subheading */
+.highlight .gt { color: #93A1A1 } /* Generic.Traceback */
+.highlight .kc { color: #CB4B16 } /* Keyword.Constant */
+.highlight .kd { color: #268BD2 } /* Keyword.Declaration */
+.highlight .kn { color: #859900 } /* Keyword.Namespace */
+.highlight .kp { color: #859900 } /* Keyword.Pseudo */
+.highlight .kr { color: #268BD2 } /* Keyword.Reserved */
+.highlight .kt { color: #DC322F } /* Keyword.Type */
+.highlight .ld { color: #93A1A1 } /* Literal.Date */
+.highlight .m { color: #2AA198 } /* Literal.Number */
+.highlight .s { color: #2AA198 } /* Literal.String */
+.highlight .na { color: #93A1A1 } /* Name.Attribute */
+.highlight .nb { color: #B58900 } /* Name.Builtin */
+.highlight .nc { color: #268BD2 } /* Name.Class */
+.highlight .no { color: #CB4B16 } /* Name.Constant */
+.highlight .nd { color: #268BD2 } /* Name.Decorator */
+.highlight .ni { color: #CB4B16 } /* Name.Entity */
+.highlight .ne { color: #CB4B16 } /* Name.Exception */
+.highlight .nf { color: #268BD2 } /* Name.Function */
+.highlight .nl { color: #93A1A1 } /* Name.Label */
+.highlight .nn { color: #93A1A1 } /* Name.Namespace */
+.highlight .nx { color: #93A1A1 } /* Name.Other */
+.highlight .py { color: #93A1A1 } /* Name.Property */
+.highlight .nt { color: #268BD2 } /* Name.Tag */
+.highlight .nv { color: #268BD2 } /* Name.Variable */
+.highlight .ow { color: #859900 } /* Operator.Word */
+.highlight .w { color: #93A1A1 } /* Text.Whitespace */
+.highlight .mf { color: #2AA198 } /* Literal.Number.Float */
+.highlight .mh { color: #2AA198 } /* Literal.Number.Hex */
+.highlight .mi { color: #2AA198 } /* Literal.Number.Integer */
+.highlight .mo { color: #2AA198 } /* Literal.Number.Oct */
+.highlight .sb { color: #586E75 } /* Literal.String.Backtick */
+.highlight .sc { color: #2AA198 } /* Literal.String.Char */
+.highlight .sd { color: #93A1A1 } /* Literal.String.Doc */
+.highlight .s2 { color: #2AA198 } /* Literal.String.Double */
+.highlight .se { color: #CB4B16 } /* Literal.String.Escape */
+.highlight .sh { color: #93A1A1 } /* Literal.String.Heredoc */
+.highlight .si { color: #2AA198 } /* Literal.String.Interpol */
+.highlight .sx { color: #2AA198 } /* Literal.String.Other */
+.highlight .sr { color: #DC322F } /* Literal.String.Regex */
+.highlight .s1 { color: #2AA198 } /* Literal.String.Single */
+.highlight .ss { color: #2AA198 } /* Literal.String.Symbol */
+.highlight .bp { color: #268BD2 } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #268BD2 } /* Name.Variable.Class */
+.highlight .vg { color: #268BD2 } /* Name.Variable.Global */
+.highlight .vi { color: #268BD2 } /* Name.Variable.Instance */
+.highlight .il { color: #2AA198 } /* Literal.Number.Integer.Long */
diff --git a/docs/source/_static/rambutan-docs.css b/docs/source/_static/rambutan-docs.css
index 94ec845..84cca81 100644
--- a/docs/source/_static/rambutan-docs.css
+++ b/docs/source/_static/rambutan-docs.css
@@ -103,7 +103,7 @@ a tt {
}
.highlight pre {
- background-color: #FFF;
+ color: #ccc;
background-color: #333;
padding: 0.75em;
margin-bottom: 2em;
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 1a4505e..22e39e9 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -123,7 +123,8 @@ html_theme = '_better_theme'
html_theme_options = {
'showrelbartop': False,
'showrelbarbottom': True,
- 'cssfiles': ['_static/rambutan-docs.css'],
+ 'cssfiles': ['_static/rambutan-docs.css',
+ '_static/pygments-solarized-dark.css'],
}
# The name for this set of Sphinx documents. If None, it defaults to