Module: Jekyll

Defined in:
lib/jekyll/converters/mt.rb,
lib/jekyll.rb,
lib/jekyll/page.rb,
lib/jekyll/post.rb,
lib/jekyll/site.rb,
lib/jekyll/layout.rb,
lib/jekyll/filters.rb,
lib/jekyll/convertible.rb,
lib/jekyll/tags/include.rb,
lib/jekyll/converters/csv.rb,
lib/jekyll/tags/highlight.rb,
lib/jekyll/converters/typo.rb,
lib/jekyll/converters/mephisto.rb,
lib/jekyll/converters/wordpress.rb,
lib/jekyll/converters/textpattern.rb

Overview

NOTE: This converter requires Sequel and the MySQL gems. The MySQL gem can be difficult to install on OS X. Once you have MySQL installed, running the following commands should work: $ sudo gem install sequel $ sudo gem install mysql – –with-mysql-config=/usr/local/mysql/bin/mysql_config

Defined Under Namespace

Modules: CSV, Convertible, Filters, MT, Mephisto, TextPattern, Typo, WordPress Classes: HighlightBlock, IncludeTag, Layout, Page, Post, Site

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.content_typeObject

Returns the value of attribute content_type.



47
48
49
# File 'lib/jekyll.rb', line 47

def content_type
  @content_type
end

.destObject

Returns the value of attribute dest.



47
48
49
# File 'lib/jekyll.rb', line 47

def dest
  @dest
end

.lsiObject

Returns the value of attribute lsi.



47
48
49
# File 'lib/jekyll.rb', line 47

def lsi
  @lsi
end

.markdown_procObject

Returns the value of attribute markdown_proc.



47
48
49
# File 'lib/jekyll.rb', line 47

def markdown_proc
  @markdown_proc
end

Returns the value of attribute permalink_style.



47
48
49
# File 'lib/jekyll.rb', line 47

def permalink_style
  @permalink_style
end

.pygmentsObject

Returns the value of attribute pygments.



47
48
49
# File 'lib/jekyll.rb', line 47

def pygments
  @pygments
end

.sourceObject

Returns the value of attribute source.



47
48
49
# File 'lib/jekyll.rb', line 47

def source
  @source
end

Class Method Details

.process(source, dest) ⇒ Object



55
56
57
58
59
60
61
# File 'lib/jekyll.rb', line 55

def self.process(source, dest)
  require 'classifier' if Jekyll.lsi
  
  Jekyll.source = source
  Jekyll.dest = dest
  Jekyll::Site.new(source, dest).process
end

.versionObject



63
64
65
66
# File 'lib/jekyll.rb', line 63

def self.version
  yml = YAML.load(File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION.yml])))
  "#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}"
end