jekyll 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of jekyll might be problematic. Click here for more details.
- data/Gemfile +2 -0
 - data/History.txt +20 -1
 - data/README.textile +1 -1
 - data/Rakefile +2 -0
 - data/bin/jekyll +92 -2
 - data/doc/output/book.html +574 -0
 - data/doc/output/ch00-preface.asc +41 -0
 - data/doc/output/ch01-quick-start.asc +153 -0
 - data/doc/output/ch02-directory-layout.asc +90 -0
 - data/doc/output/stylesheets/handbookish-quirks.css +0 -0
 - data/doc/output/stylesheets/handbookish.css +231 -0
 - data/doc/output/stylesheets/scribe-quirks.css +0 -0
 - data/doc/output/stylesheets/scribe.css +177 -0
 - data/features/post_data.feature +2 -2
 - data/features/site_configuration.feature +7 -0
 - data/features/support/env.rb +3 -0
 - data/g.pl +48 -0
 - data/jekyll.gemspec +35 -16
 - data/lib/jekyll.rb +11 -4
 - data/lib/jekyll/converters/markdown.rb +14 -2
 - data/lib/jekyll/converters/textile.rb +2 -1
 - data/lib/jekyll/convertible.rb +34 -19
 - data/lib/jekyll/filters.rb +66 -1
 - data/lib/jekyll/generators/pagination.rb +33 -7
 - data/lib/jekyll/layout.rb +18 -10
 - data/lib/jekyll/migrators/csv.rb +3 -3
 - data/lib/jekyll/migrators/drupal.rb +12 -6
 - data/lib/jekyll/migrators/enki.rb +49 -0
 - data/lib/jekyll/migrators/marley.rb +0 -1
 - data/lib/jekyll/migrators/mephisto.rb +17 -12
 - data/lib/jekyll/migrators/mt.rb +26 -17
 - data/lib/jekyll/migrators/posterous.rb +68 -0
 - data/lib/jekyll/migrators/textpattern.rb +15 -8
 - data/lib/jekyll/migrators/tumblr.rb +119 -0
 - data/lib/jekyll/migrators/typo.rb +8 -6
 - data/lib/jekyll/migrators/wordpress.rb +23 -16
 - data/lib/jekyll/migrators/wordpressdotcom.rb +70 -0
 - data/lib/jekyll/page.rb +56 -35
 - data/lib/jekyll/plugin.rb +1 -0
 - data/lib/jekyll/post.rb +25 -14
 - data/lib/jekyll/site.rb +138 -80
 - data/lib/jekyll/static_file.rb +12 -15
 - data/lib/jekyll/tags/highlight.rb +5 -5
 - data/output/stylesheets/scribe-quirks.css +0 -0
 - data/output/stylesheets/scribe.css +177 -0
 - data/test/helper.rb +3 -3
 - data/test/source/_posts/2011-04-12-md-extension.md +7 -0
 - data/test/source/_posts/2011-04-12-text-extension.text +0 -0
 - data/test/suite.rb +3 -1
 - data/test/test_configuration.rb +1 -1
 - data/test/test_core_ext.rb +1 -1
 - data/test/test_filters.rb +10 -1
 - data/test/test_generated_site.rb +2 -2
 - data/test/test_kramdown.rb +1 -1
 - data/test/test_page.rb +1 -1
 - data/test/test_pager.rb +1 -1
 - data/test/test_post.rb +49 -2
 - data/test/test_rdiscount.rb +1 -1
 - data/test/test_redcarpet.rb +21 -0
 - data/test/test_site.rb +1 -1
 - data/test/test_tags.rb +14 -1
 - metadata +104 -38
 - data/lib/jekyll/albino.rb +0 -120
 - data/lib/jekyll/migrators/wordpress.com.rb +0 -38
 
| 
         @@ -1,38 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require 'rubygems'
         
     | 
| 
       2 
     | 
    
         
            -
            require 'hpricot'
         
     | 
| 
       3 
     | 
    
         
            -
            require 'fileutils'
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            # This importer takes a wordpress.xml file,
         
     | 
| 
       6 
     | 
    
         
            -
            # which can be exported from your 
         
     | 
| 
       7 
     | 
    
         
            -
            # wordpress.com blog (/wp-admin/export.php)
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
            module Jekyll
         
     | 
| 
       10 
     | 
    
         
            -
              module WordpressDotCom
         
     | 
| 
       11 
     | 
    
         
            -
                def self.process(filename = "wordpress.xml")
         
     | 
| 
       12 
     | 
    
         
            -
                  FileUtils.mkdir_p "_posts"
         
     | 
| 
       13 
     | 
    
         
            -
                  posts = 0
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            			doc = Hpricot::XML(File.read(filename))
         
     | 
| 
       16 
     | 
    
         
            -
            			
         
     | 
| 
       17 
     | 
    
         
            -
            			(doc/:channel/:item).each do |item|
         
     | 
| 
       18 
     | 
    
         
            -
            				title = item.at(:title).inner_text
         
     | 
| 
       19 
     | 
    
         
            -
            				name = "#{Date.parse((doc/:channel/:item).first.at(:pubDate).inner_text).to_s("%Y-%m-%d")}-#{title.downcase.gsub('[^a-z0-9]', '-')}.html"
         
     | 
| 
       20 
     | 
    
         
            -
            				
         
     | 
| 
       21 
     | 
    
         
            -
            				File.open("_posts/#{name}", "w") do |f|
         
     | 
| 
       22 
     | 
    
         
            -
                      f.puts <<-HEADER
         
     | 
| 
       23 
     | 
    
         
            -
            ---
         
     | 
| 
       24 
     | 
    
         
            -
            layout: post
         
     | 
| 
       25 
     | 
    
         
            -
            title: #{title}
         
     | 
| 
       26 
     | 
    
         
            -
            ---
         
     | 
| 
       27 
     | 
    
         
            -
             
         
     | 
| 
       28 
     | 
    
         
            -
            HEADER
         
     | 
| 
       29 
     | 
    
         
            -
                      f.puts item.at('content:encoded').inner_text
         
     | 
| 
       30 
     | 
    
         
            -
                    end
         
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
            				posts += 1
         
     | 
| 
       33 
     | 
    
         
            -
            			end
         
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
            			"Imported #{posts} posts"
         
     | 
| 
       36 
     | 
    
         
            -
                end
         
     | 
| 
       37 
     | 
    
         
            -
              end
         
     | 
| 
       38 
     | 
    
         
            -
            end
         
     |