Permalink
Browse files

modified jekyll structure

  • Loading branch information...
1 parent 9c0eb5f commit 560f809e2add6b9afd4dacb00911f6c436db9280 @mnewt committed Aug 8, 2012
Showing with 46 additions and 0 deletions.
  1. +5 −0 _config.yml
  2. +40 −0 source/README.md
  3. +1 −0 themes/prettify.css
View
@@ -0,0 +1,5 @@
+safe: true
+source: source
+destination: pages
+lsi: false
+pygments: false
View
@@ -0,0 +1,40 @@
+google-code-prettify wrapper
+=======================
+
+This repository serves up google prettify. It allows you to add code highlighting to any page without hosting any files. It has no external dependencies--just pure javascript.
+
+
+# Directions
+
+**ONE**: copy the code in `reference.html` into your web page, at the end of the file right before `</body>`
+The end of your html template should look like this:
+
+```html
+<!-- ======================= Begin Prettify ============================-->
+ <link rel="stylesheet" type="text/css" rel="stylesheet"
+ href="http://mnewt.github.com/prettify-wrapper/tomorrow-mnewt.css">
+ <script type="text/javascript"
+ src="https://raw.github.com/mnewt/prettify-wrapper/master/google-code-prettify/src/prettify.js">
+ </script>
+ <script type="text/javascript" src="https://raw.github.com/mnewt/prettify-wrapper/master/styleCode.js">
+ </script>
+<!-- ======================== End Prettify =============================-->
+</body>
+</html>
+```
+**TWO**: (optional): customize the theme by pointing the first line to a different CSS file, such as this one:
+https://raw.github.com/mnewt/prettify-wrapper/master/tomorrow-night-mnewt.css
+
+
+# Themes
+
+There are a few themes included in the package itself:
+http://google-code-prettify.googlecode.com/svn/trunk/styles/index.html
+
+[jmblog](https://github.com/jmblog) maintains some nice themes:
+http://jmblog.github.com/color-themes-for-google-code-prettify/
+
+Lastly, here are some themes I'm hosting. They are slightly modified versions of the ones found above.
+ * http://mnewt.github.com/prettify-wrapper/themes/tomorrow-mnewt.css
+ * http://mnewt.github.com/prettify-wrapper/themes/tomorrow-night-mnewt.css
+ * http://mnewt.github.com/prettify-wrapper/themes/tomorrow-night-eighties-mnewt.css
View
@@ -0,0 +1 @@
+.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}

0 comments on commit 560f809

Please sign in to comment.