Compare commits

...

15 Commits

Author SHA1 Message Date
Parker Moore
92da39eb6f Release 1.4.2 2013-12-16 20:18:33 -05:00
Parker Moore
f8983194c8 Update history to reflect release of v1.4.2 2013-12-16 20:16:00 -05:00
Parker Moore
b716cc62fe Bump to v1.4.2 2013-12-16 20:14:42 -05:00
Parker Moore
24495c6355 Rakefile's site:releases:new should use 'release' variable instead of 'version' function to specify version in YAML front-matter 2013-12-16 20:14:33 -05:00
Parker Moore
8d6c09cc4f Add 1.4.2 release post 2013-12-16 20:13:55 -05:00
Matt Rogers
9cc1a8f178 Update history to reflect merge of #1830 2013-12-16 08:01:39 -06:00
Matt Rogers
0d6b208380 Merge pull request #1830 from jekyll/support-maruku-fenced-code-blocks
Support Maruku fenced code blocks
2013-12-16 06:01:32 -08:00
Parker Moore
3fdc91eb78 Add two tests for Maruku fenced code blocks 2013-12-15 15:10:17 -05:00
Parker Moore
6b0c511b9d Support Maruku fenced code blocks
In Maruku v0.7.0, they default to off. Need to default them on our end to on.
2013-12-15 14:54:13 -05:00
Matt Rogers
aa5c98d281 Release 1.4.1 2013-12-09 20:56:36 -06:00
Matt Rogers
eb54b7f90d Allow releases from the v1-stable branch 2013-12-09 20:56:22 -06:00
Matt Rogers
e92b67dfb9 Bump the gemspec version to 1.4.1 2013-12-09 20:55:56 -06:00
Matt Rogers
3a870fd09e Prep for a 1.4.1 release 2013-12-09 20:36:19 -06:00
Matt Rogers
3607ac5e5f Update history to reflect merge of #1796 2013-12-09 20:25:15 -06:00
Parker Moore
ca95e75976 Reject nil entries in Site#read_things 2013-12-09 20:25:04 -06:00
10 changed files with 88 additions and 7 deletions

View File

@@ -10,6 +10,24 @@
### Site Enhancements
## 1.4.2 / 2013-12-16
### Bug Fixes
* Turn on Maruku fenced code blocks by default (#1830)
## 1.4.1 / 2013-12-09
### Major Enhancements
### Minor Enhancements
### Bug Fixes
* Don't allow nil entries when loading posts (#1796)
### Development Fixes
### Site Enhancements
## 1.4.0 / 2013-12-07
### Major Enhancements

View File

@@ -233,7 +233,7 @@ namespace :site do
post.puts("title: 'Jekyll #{release} Released'")
post.puts("date: #{Time.new.strftime('%Y-%m-%d %H:%M:%S %z')}")
post.puts("author: ")
post.puts("version: #{version}")
post.puts("version: #{release}")
post.puts("categories: [release]")
post.puts("---")
post.puts
@@ -252,8 +252,8 @@ end
#############################################################################
task :release => :build do
unless `git branch` =~ /^\* master$/
puts "You must be on the master branch to release!"
unless `git branch` =~ /^(\* master|\* v1-stable)$/
puts "You must be on the master branch or the v1-stable branch to release!"
exit!
end
sh "git commit --allow-empty -m 'Release #{version}'"

View File

@@ -28,3 +28,40 @@ Feature: Markdown
And I should see "Index" in "_site/index.html"
And I should see "<h1 id=\"my_title\">My Title</h1>" in "_site/index.html"
Scenario: Maruku fenced codeblocks
Given I have a configuration file with "markdown" set to "maruku"
And I have an "index.markdown" file with content:
"""
---
title: My title
---
# My title
```
My awesome code
```
"""
When I run jekyll
Then the _site directory should exist
And I should see "My awesome code" in "_site/index.html"
And I should see "<pre><code>\nMy awesome code\n</code></pre>" in "_site/index.html"
Scenario: Maruku fenced codeblocks
Given I have a configuration file with "markdown" set to "maruku"
And I have an "index.markdown" file with content:
"""
---
title: My title
---
# My title
```ruby
puts "My awesome string"
```
"""
When I run jekyll
Then the _site directory should exist
And I should see "My awesome string" in "_site/index.html"
And I should see "<pre class="ruby"><code class="ruby">\nputs &quot;My awesome string&quot;\n</code></pre>" in "_site/index.html"

View File

@@ -4,9 +4,9 @@ Gem::Specification.new do |s|
s.rubygems_version = '1.3.5'
s.name = 'jekyll'
s.version = '1.4.0'
s.version = '1.4.2'
s.license = 'MIT'
s.date = '2013-12-07'
s.date = '2013-12-16'
s.rubyforge_project = 'jekyll'
s.summary = "A simple, blog aware, static site generator."
@@ -160,6 +160,7 @@ Gem::Specification.new do |s|
site/_posts/2013-11-04-jekyll-1-3-0-released.markdown
site/_posts/2013-11-26-jekyll-1-3-1-released.markdown
site/_posts/2013-12-07-jekyll-1-4-0-released.markdown
site/_posts/2013-12-16-jekyll-1-4-2-released.markdown
site/css/gridism.css
site/css/normalize.css
site/css/pygments.css

View File

@@ -63,7 +63,7 @@ require_all 'jekyll/tags'
SafeYAML::OPTIONS[:suppress_warnings] = true
module Jekyll
VERSION = '1.4.0'
VERSION = '1.4.2'
# Public: Generate a Jekyll configuration Hash by merging the default
# options with anything in _config.yml, and adding the given options on top.

View File

@@ -45,6 +45,7 @@ module Jekyll
'excerpt_separator' => "\n\n",
'maruku' => {
'fenced_code_blocks' => true,
'use_tex' => false,
'use_divs' => false,
'png_engine' => 'blahtex',

View File

@@ -8,6 +8,7 @@ module Jekyll
@errors = []
load_divs_library if @config['maruku']['use_divs']
load_blahtext_library if @config['maruku']['use_tex']
enable_fenced_code_blocks if @config['maruku']['fenced_code_blocks']
rescue LoadError
STDERR.puts 'You are missing a library required for Markdown. Please run:'
STDERR.puts ' $ [sudo] gem install maruku'
@@ -35,6 +36,10 @@ module Jekyll
MaRuKu::Globals[:html_png_url] = @config['maruku']['png_url']
end
def enable_fenced_code_blocks
MaRuKu::Globals[:fenced_code_blocks] = true
end
def print_errors_and_fail
print @errors.join
raise MaRuKu::Exception, "MaRuKu encountered problem(s) while converting your markup."

View File

@@ -193,8 +193,10 @@ module Jekyll
end
def read_things(dir, magic_dir, klass)
things = get_entries(dir, magic_dir).map do |entry|
get_entries(dir, magic_dir).map do |entry|
klass.new(self, self.source, dir, entry) if klass.valid?(entry)
end.reject do |entry|
entry.nil?
end
end

View File

@@ -0,0 +1,16 @@
---
layout: news_item
title: 'Jekyll 1.4.2 Released'
date: 2013-12-16 19:48:13 -0500
author: parkr
version: 1.4.2
categories: [release]
---
This release fixes [a regression][] where Maruku fenced code blocks were turned
off, instead of the previous default to on. We've added a new default
configuration to our `maruku` config key: `fenced_code_blocks` and set it to
default to `true`.
If you do not wish to use Maruku fenced code blocks, you may turn this option
off in your site's configuration file.

View File

@@ -316,6 +316,7 @@ maruku:
png_engine: blahtex
png_dir: images/latex
png_url: /images/latex
fenced_code_blocks: true
rdiscount:
extensions: []