Sha256: 1572a099a6bab21314a46d29865c5383edb76c231c1307bc750b098e7a5f6615

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

$:.unshift File.dirname(__FILE__)

require 'rubygems'
require 'fileutils'
require 'time'
require 'yaml'
require 'liquid'
require 'redcloth'

begin
  require 'maruku'
  require 'maruku/ext/math'

  # Switch off MathML output.
  MaRuKu::Globals[:html_math_output_mathml] = false
  MaRuKu::Globals[:html_math_engine] = 'none'

  # Turn on math to PNG support with blahtex.
  # Resulting PNGs stored in `images/latex`.
  MaRuKu::Globals[:html_math_output_png] = true
  MaRuKu::Globals[:html_png_engine] =  'blahtex'
  MaRuKu::Globals[:html_png_dir] = 'images/latex'
  MaRuKu::Globals[:html_png_url] = '/images/latex/'
rescue LoadError
  puts 'The maruku gem is required for markdown support!'
end

require 'jekyll/core_ext'
require 'jekyll/site'
require 'jekyll/convertible'
require 'jekyll/layout'
require 'jekyll/page'
require 'jekyll/post'
require 'jekyll/filters'
require 'jekyll/tags/highlight'
require 'jekyll/tags/include'
require 'jekyll/albino'

module Jekyll
  VERSION = '0.3.0'

  class << self
    attr_accessor :source, :dest, :lsi, :pygments, :markdown_proc
  end

  Jekyll.lsi = false
  Jekyll.pygments = false
  Jekyll.markdown_proc = Proc.new { |x| Maruku.new(x).to_html }

  def self.process(source, dest)
    require 'classifier' if Jekyll.lsi

    Jekyll.source = source
    Jekyll.dest = dest
    Jekyll::Site.new(source, dest).process
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tristandunn-jekyll-0.3.0 lib/jekyll.rb