Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Switching to Markdown - Testing blogging features of jekyll

  • Loading branch information...
commit 79614e5faaac79e2e12a55560981274bb1aa4820 1 parent 177c974
Jacques Crocker authored October 30, 2009
1  _layouts/default.html
@@ -11,6 +11,7 @@
11 11
     <meta content='no' http-equiv='msthemecompatible' />
12 12
     <meta content='false' http-equiv='imagetoolbar' />
13 13
     <link href="/stylesheets/merb.css" media="screen" rel="stylesheet" type="text/css" />
  14
+    <link href="/stylesheets/code.css" media="screen" rel="stylesheet" type="text/css" />
14 15
   </head>
15 16
   <body>
16 17
     <div id='header'>
89  _posts/2009-10-29-merb-1-0-13-released.md
Source Rendered
... ...
@@ -0,0 +1,89 @@
  1
+---
  2
+layout: blog
  3
+title: Merb 1.0.13 Released
  4
+---
  5
+
  6
+# {{ page.title }} #
  7
+
  8
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  9
+
  10
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  11
+
  12
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  13
+
  14
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  15
+
  16
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  17
+
  18
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  19
+
  20
+{% highlight ruby %}
  21
+
  22
+$:.unshift File.dirname(__FILE__)     # For use/testing when no gem is installed
  23
+
  24
+# rubygems
  25
+require 'rubygems'
  26
+
  27
+# core
  28
+require 'fileutils'
  29
+require 'time'
  30
+require 'yaml'
  31
+
  32
+# stdlib
  33
+
  34
+# 3rd party
  35
+require 'liquid'
  36
+require 'redcloth'
  37
+begin
  38
+  require 'maruku'
  39
+  require 'maruku/ext/math'
  40
+  # Switch off MathML output
  41
+  MaRuKu::Globals[:html_math_output_mathml] = false
  42
+  MaRuKu::Globals[:html_math_engine] = 'none'
  43
+
  44
+  # Turn on math to PNG support with blahtex
  45
+  # Resulting PNGs stored in `images/latex`
  46
+  MaRuKu::Globals[:html_math_output_png] = true
  47
+  MaRuKu::Globals[:html_png_engine] =  'blahtex'
  48
+  MaRuKu::Globals[:html_png_dir] = 'images/latex'
  49
+  MaRuKu::Globals[:html_png_url] = '/images/latex/'
  50
+rescue LoadError
  51
+  puts "The maruku gem is required for markdown support!"
  52
+end
  53
+
  54
+# internal requires
  55
+require 'jekyll/core_ext'
  56
+require 'jekyll/site'
  57
+require 'jekyll/convertible'
  58
+require 'jekyll/layout'
  59
+require 'jekyll/page'
  60
+require 'jekyll/post'
  61
+require 'jekyll/filters'
  62
+require 'jekyll/tags/highlight'
  63
+require 'jekyll/tags/include'
  64
+require 'jekyll/albino'
  65
+
  66
+module Jekyll
  67
+  class << self
  68
+    attr_accessor :source, :dest, :lsi, :pygments, :markdown_proc, :content_type, :permalink_style
  69
+  end
  70
+
  71
+  Jekyll.lsi = false
  72
+  Jekyll.pygments = false
  73
+  Jekyll.markdown_proc = Proc.new { |x| Maruku.new(x).to_html }
  74
+  Jekyll.permalink_style = :date
  75
+
  76
+  def self.process(source, dest)
  77
+    require 'classifier' if Jekyll.lsi
  78
+
  79
+    Jekyll.source = source
  80
+    Jekyll.dest = dest
  81
+    Jekyll::Site.new(source, dest).process
  82
+  end
  83
+
  84
+  def self.version
  85
+    yml = YAML.load(File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION.yml])))
  86
+    "#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}"
  87
+  end
  88
+end
  89
+{% endhighlight %}
6  _posts/2009-10-29-merb-1-0-13-released.textile
Source Rendered
... ...
@@ -1,6 +0,0 @@
1  
----
2  
-layout: blog
3  
-title: Merb 1.0.13 Released
4  
----
5  
-
6  
-h1. {{ page.title }}
69  stylesheets/code.css
... ...
@@ -0,0 +1,69 @@
  1
+.highlight .hll { background-color: #333333 }
  2
+.highlight .c { color: #008800; font-style: italic; background-color: #0f140f } /* Comment */
  3
+.highlight .err { color: #ffffff } /* Error */
  4
+.highlight .g { color: #ffffff } /* Generic */
  5
+.highlight .k { color: #fb660a; font-weight: bold } /* Keyword */
  6
+.highlight .l { color: #ffffff } /* Literal */
  7
+.highlight .n { color: #ffffff } /* Name */
  8
+.highlight .o { color: #ffffff } /* Operator */
  9
+.highlight .x { color: #ffffff } /* Other */
  10
+.highlight .p { color: #ffffff } /* Punctuation */
  11
+.highlight .cm { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Multiline */
  12
+.highlight .cp { color: #ff0007; font-weight: bold; font-style: italic; background-color: #0f140f } /* Comment.Preproc */
  13
+.highlight .c1 { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Single */
  14
+.highlight .cs { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Special */
  15
+.highlight .gd { color: #ffffff } /* Generic.Deleted */
  16
+.highlight .ge { color: #ffffff } /* Generic.Emph */
  17
+.highlight .gr { color: #ffffff } /* Generic.Error */
  18
+.highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
  19
+.highlight .gi { color: #ffffff } /* Generic.Inserted */
  20
+.highlight .go { color: #444444; background-color: #222222 } /* Generic.Output */
  21
+.highlight .gp { color: #ffffff } /* Generic.Prompt */
  22
+.highlight .gs { color: #ffffff } /* Generic.Strong */
  23
+.highlight .gu { color: #ffffff; font-weight: bold } /* Generic.Subheading */
  24
+.highlight .gt { color: #ffffff } /* Generic.Traceback */
  25
+.highlight .kc { color: #fb660a; font-weight: bold } /* Keyword.Constant */
  26
+.highlight .kd { color: #fb660a; font-weight: bold } /* Keyword.Declaration */
  27
+.highlight .kn { color: #fb660a; font-weight: bold } /* Keyword.Namespace */
  28
+.highlight .kp { color: #fb660a } /* Keyword.Pseudo */
  29
+.highlight .kr { color: #fb660a; font-weight: bold } /* Keyword.Reserved */
  30
+.highlight .kt { color: #cdcaa9; font-weight: bold } /* Keyword.Type */
  31
+.highlight .ld { color: #ffffff } /* Literal.Date */
  32
+.highlight .m { color: #0086f7; font-weight: bold } /* Literal.Number */
  33
+.highlight .s { color: #0086d2 } /* Literal.String */
  34
+.highlight .na { color: #ff0086; font-weight: bold } /* Name.Attribute */
  35
+.highlight .nb { color: #ffffff } /* Name.Builtin */
  36
+.highlight .nc { color: #ffffff } /* Name.Class */
  37
+.highlight .no { color: #0086d2 } /* Name.Constant */
  38
+.highlight .nd { color: #ffffff } /* Name.Decorator */
  39
+.highlight .ni { color: #ffffff } /* Name.Entity */
  40
+.highlight .ne { color: #ffffff } /* Name.Exception */
  41
+.highlight .nf { color: #ff0086; font-weight: bold } /* Name.Function */
  42
+.highlight .nl { color: #ffffff } /* Name.Label */
  43
+.highlight .nn { color: #ffffff } /* Name.Namespace */
  44
+.highlight .nx { color: #ffffff } /* Name.Other */
  45
+.highlight .py { color: #ffffff } /* Name.Property */
  46
+.highlight .nt { color: #fb660a; font-weight: bold } /* Name.Tag */
  47
+.highlight .nv { color: #fb660a } /* Name.Variable */
  48
+.highlight .ow { color: #ffffff } /* Operator.Word */
  49
+.highlight .w { color: #888888 } /* Text.Whitespace */
  50
+.highlight .mf { color: #0086f7; font-weight: bold } /* Literal.Number.Float */
  51
+.highlight .mh { color: #0086f7; font-weight: bold } /* Literal.Number.Hex */
  52
+.highlight .mi { color: #0086f7; font-weight: bold } /* Literal.Number.Integer */
  53
+.highlight .mo { color: #0086f7; font-weight: bold } /* Literal.Number.Oct */
  54
+.highlight .sb { color: #0086d2 } /* Literal.String.Backtick */
  55
+.highlight .sc { color: #0086d2 } /* Literal.String.Char */
  56
+.highlight .sd { color: #0086d2 } /* Literal.String.Doc */
  57
+.highlight .s2 { color: #0086d2 } /* Literal.String.Double */
  58
+.highlight .se { color: #0086d2 } /* Literal.String.Escape */
  59
+.highlight .sh { color: #0086d2 } /* Literal.String.Heredoc */
  60
+.highlight .si { color: #0086d2 } /* Literal.String.Interpol */
  61
+.highlight .sx { color: #0086d2 } /* Literal.String.Other */
  62
+.highlight .sr { color: #0086d2 } /* Literal.String.Regex */
  63
+.highlight .s1 { color: #0086d2 } /* Literal.String.Single */
  64
+.highlight .ss { color: #0086d2 } /* Literal.String.Symbol */
  65
+.highlight .bp { color: #ffffff } /* Name.Builtin.Pseudo */
  66
+.highlight .vc { color: #fb660a } /* Name.Variable.Class */
  67
+.highlight .vg { color: #fb660a } /* Name.Variable.Global */
  68
+.highlight .vi { color: #fb660a } /* Name.Variable.Instance */
  69
+.highlight .il { color: #0086f7; font-weight: bold } /* Literal.Number.Integer.Long */

0 notes on commit 79614e5

Please sign in to comment.
Something went wrong with that request. Please try again.