Sha256: fa2a345bc1405603bf4a6fb7ca09f1c80fe5c1d02993b08acba1d5ab46c656f8

Contents?: true

Size: 1.65 KB

Versions: 11

Compression:

Stored size: 1.65 KB

Contents

$:.unshift File.dirname(__FILE__)     # For use/testing when no gem is installed

# rubygems
require 'rubygems'

# core
require 'fileutils'
require 'time'
require 'yaml'

# stdlib

# 3rd party
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

# internal requires
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
  class << self
    attr_accessor :source, :dest, :lsi, :pygments, :markdown_proc, :content_type, :permalink_style
  end
  
  Jekyll.lsi = false
  Jekyll.pygments = false
  Jekyll.markdown_proc = Proc.new { |x| Maruku.new(x).to_html }
  Jekyll.permalink_style = :date
  
  def self.process(source, dest)
    require 'classifier' if Jekyll.lsi
    
    Jekyll.source = source
    Jekyll.dest = dest
    Jekyll::Site.new(source, dest).process
  end
  
  def self.version
    yml = YAML.load(File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION.yml])))
    "#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}"
  end
end

Version data entries

11 entries across 11 versions & 8 rubygems

Version Path
codeslinger-jekyll-0.4.1 lib/jekyll.rb
danski-jekyll-0.4.1 lib/jekyll.rb
dysinger-jekyll-0.4.0 lib/jekyll.rb
elq-jekyll-0.4.2 lib/jekyll.rb
mattmatt-jekyll-0.4.3 lib/jekyll.rb
mattmatt-jekyll-0.4.4 lib/jekyll.rb
mattmatt-jekyll-0.4.5 lib/jekyll.rb
mojombo-jekyll-0.4.1 lib/jekyll.rb
qrush-jekyll-0.4.0 lib/jekyll.rb
qrush-jekyll-0.4.1 lib/jekyll.rb
jekyll-0.4.1 lib/jekyll.rb