diff options
author | Andy Konwinski <andyk@berkeley.edu> | 2012-09-12 19:27:44 -0700 |
---|---|---|
committer | Andy Konwinski <andyk@berkeley.edu> | 2012-09-12 19:27:44 -0700 |
commit | 35adccd0088e5f0baa0eb97f8ca21e0d1c1ff71f (patch) | |
tree | 704f740ed4d3977b429f648e1efdf12a5a964915 /docs/css | |
parent | bf54ad2fe0926ad3f277500ad7280fabb1cd7257 (diff) | |
download | spark-35adccd0088e5f0baa0eb97f8ca21e0d1c1ff71f.tar.gz spark-35adccd0088e5f0baa0eb97f8ca21e0d1c1ff71f.tar.bz2 spark-35adccd0088e5f0baa0eb97f8ca21e0d1c1ff71f.zip |
Adds syntax highlighting (via pygments), and some style tweaks to make things
easier to read.
Diffstat (limited to 'docs/css')
-rwxr-xr-x | docs/css/main.css | 25 | ||||
-rw-r--r-- | docs/css/pygments-default.css | 76 |
2 files changed, 101 insertions, 0 deletions
diff --git a/docs/css/main.css b/docs/css/main.css index b351c82415..8432d0f911 100755 --- a/docs/css/main.css +++ b/docs/css/main.css @@ -1,3 +1,28 @@ +--- +--- /* ========================================================================== Author's custom styles ========================================================================== */ + +/*.brand { + background: url({{HOME_PATH}}img/spark-logo.jpg) no-repeat left center; + height: 40px; + width: 100px; +} +*/ + +body { + line-height: 1.6; /* Inspired by Github's wiki style */ +} + +h1 { + font-size: 28px; +} + +code { + color: #333; +} + +.container { + max-width: 914px; +} diff --git a/docs/css/pygments-default.css b/docs/css/pygments-default.css new file mode 100644 index 0000000000..f5815c25ca --- /dev/null +++ b/docs/css/pygments-default.css @@ -0,0 +1,76 @@ +/* +Documentation for pygments (and Jekyll for that matter) is super sparse. +To generate this, I had to run + `pygmentize -S default -f html > pygments-default.css` +But first I had to install pygments via easy_install pygments + +I had to override the conflicting bootstrap style rules by linking to +this stylesheet lower in the html than the bootstap css. + +Also, I was thrown off for a while at first when I was using markdown +code block inside my {% highlight scala %} ... {% endhighlight %} tags +(I was using 4 spaces for this), when it turns out that pygments will +insert the code (or pre?) tags for you. + +*/ +.hll { background-color: #ffffcc } +.c { color: #408080; font-style: italic } /* Comment */ +.err { border: 1px solid #FF0000 } /* Error */ +.k { color: #008000; font-weight: bold } /* Keyword */ +.o { color: #666666 } /* Operator */ +.cm { color: #408080; font-style: italic } /* Comment.Multiline */ +.cp { color: #BC7A00 } /* Comment.Preproc */ +.c1 { color: #408080; font-style: italic } /* Comment.Single */ +.cs { color: #408080; font-style: italic } /* Comment.Special */ +.gd { color: #A00000 } /* Generic.Deleted */ +.ge { font-style: italic } /* Generic.Emph */ +.gr { color: #FF0000 } /* Generic.Error */ +.gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.gi { color: #00A000 } /* Generic.Inserted */ +.go { color: #808080 } /* Generic.Output */ +.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ +.gs { font-weight: bold } /* Generic.Strong */ +.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.gt { color: #0040D0 } /* Generic.Traceback */ +.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ +.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ +.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ +.kp { color: #008000 } /* Keyword.Pseudo */ +.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ +.kt { color: #B00040 } /* Keyword.Type */ +.m { color: #666666 } /* Literal.Number */ +.s { color: #BA2121 } /* Literal.String */ +.na { color: #7D9029 } /* Name.Attribute */ +.nb { color: #008000 } /* Name.Builtin */ +.nc { color: #0000FF; font-weight: bold } /* Name.Class */ +.no { color: #880000 } /* Name.Constant */ +.nd { color: #AA22FF } /* Name.Decorator */ +.ni { color: #999999; font-weight: bold } /* Name.Entity */ +.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ +.nf { color: #0000FF } /* Name.Function */ +.nl { color: #A0A000 } /* Name.Label */ +.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ +.nt { color: #008000; font-weight: bold } /* Name.Tag */ +.nv { color: #19177C } /* Name.Variable */ +.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ +.w { color: #bbbbbb } /* Text.Whitespace */ +.mf { color: #666666 } /* Literal.Number.Float */ +.mh { color: #666666 } /* Literal.Number.Hex */ +.mi { color: #666666 } /* Literal.Number.Integer */ +.mo { color: #666666 } /* Literal.Number.Oct */ +.sb { color: #BA2121 } /* Literal.String.Backtick */ +.sc { color: #BA2121 } /* Literal.String.Char */ +.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ +.s2 { color: #BA2121 } /* Literal.String.Double */ +.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ +.sh { color: #BA2121 } /* Literal.String.Heredoc */ +.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ +.sx { color: #008000 } /* Literal.String.Other */ +.sr { color: #BB6688 } /* Literal.String.Regex */ +.s1 { color: #BA2121 } /* Literal.String.Single */ +.ss { color: #19177C } /* Literal.String.Symbol */ +.bp { color: #008000 } /* Name.Builtin.Pseudo */ +.vc { color: #19177C } /* Name.Variable.Class */ +.vg { color: #19177C } /* Name.Variable.Global */ +.vi { color: #19177C } /* Name.Variable.Instance */ +.il { color: #666666 } /* Literal.Number.Integer.Long */ |