Merge remote-tracking branch 'upstream/master' into patch-10
This commit is contained in:
commit
6dbe112f79
|
@ -6,8 +6,11 @@
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Fix Rouge's RedCarpet plugin interface integration (#2951)
|
||||||
* Remove `--watch` from the site template blog post since it defaults
|
* Remove `--watch` from the site template blog post since it defaults
|
||||||
to watching in in 2.4.0 (#2922)
|
to watching in in 2.4.0 (#2922)
|
||||||
|
* Fix code for media query mixin in site template (#2946)
|
||||||
|
* Allow post URL's to have `.htm` extensions (#2925)
|
||||||
|
|
||||||
### Development Fixes
|
### Development Fixes
|
||||||
|
|
||||||
|
@ -27,6 +30,7 @@
|
||||||
* Added `mathml.rb` to the list of third-party plugins. (#2937)
|
* Added `mathml.rb` to the list of third-party plugins. (#2937)
|
||||||
* Add `--force_polling` to the list of configuration options (#2943)
|
* Add `--force_polling` to the list of configuration options (#2943)
|
||||||
* Escape unicode characters in site CSS (#2906)
|
* Escape unicode characters in site CSS (#2906)
|
||||||
|
* Add note about using the github-pages gem via pages.github.com/versions.json (#2939)
|
||||||
|
|
||||||
## 2.4.0 / 2014-09-09
|
## 2.4.0 / 2014-09-09
|
||||||
|
|
||||||
|
|
|
@ -83,3 +83,13 @@ Feature: Fancy permalinks
|
||||||
Then the _site directory should exist
|
Then the _site directory should exist
|
||||||
And the _site/custom/posts directory should exist
|
And the _site/custom/posts directory should exist
|
||||||
And I should see "bla bla" in "_site/custom/posts/some.html"
|
And I should see "bla bla" in "_site/custom/posts/some.html"
|
||||||
|
|
||||||
|
Scenario: Use per-post ending in .htm
|
||||||
|
Given I have a _posts directory
|
||||||
|
And I have the following post:
|
||||||
|
| title | date | permalink | content |
|
||||||
|
| Some post | 2013-04-14 | /custom/posts/some.htm | bla bla |
|
||||||
|
When I run jekyll build
|
||||||
|
Then the _site directory should exist
|
||||||
|
And the _site/custom/posts directory should exist
|
||||||
|
And I should see "bla bla" in "_site/custom/posts/some.htm"
|
||||||
|
|
|
@ -62,5 +62,5 @@ Gem::Specification.new do |s|
|
||||||
s.add_development_dependency('activesupport', '~> 3.2.13')
|
s.add_development_dependency('activesupport', '~> 3.2.13')
|
||||||
s.add_development_dependency('jekyll_test_plugin')
|
s.add_development_dependency('jekyll_test_plugin')
|
||||||
s.add_development_dependency('jekyll_test_plugin_malicious')
|
s.add_development_dependency('jekyll_test_plugin_malicious')
|
||||||
s.add_development_dependency('rouge', '~> 1.3')
|
s.add_development_dependency('rouge', '~> 1.7')
|
||||||
end
|
end
|
||||||
|
|
|
@ -48,8 +48,8 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
def rouge_formatter(opts = {})
|
def rouge_formatter(lexer)
|
||||||
Rouge::Formatters::HTML.new(opts.merge(wrap: false))
|
Rouge::Formatters::HTML.new(:wrap => false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -269,7 +269,7 @@ module Jekyll
|
||||||
def destination(dest)
|
def destination(dest)
|
||||||
# The url needs to be unescaped in order to preserve the correct filename
|
# The url needs to be unescaped in order to preserve the correct filename
|
||||||
path = Jekyll.sanitized_path(dest, URL.unescape_path(url))
|
path = Jekyll.sanitized_path(dest, URL.unescape_path(url))
|
||||||
path = File.join(path, "index.html") if path[/\.html$/].nil?
|
path = File.join(path, "index.html") if path[/\.html?$/].nil?
|
||||||
path
|
path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ $on-laptop: 800px;
|
||||||
|
|
||||||
|
|
||||||
// Using media queries with like this:
|
// Using media queries with like this:
|
||||||
// @include media-query($palm) {
|
// @include media-query($on-palm) {
|
||||||
// .wrapper {
|
// .wrapper {
|
||||||
// padding-right: $spacing-unit / 2;
|
// padding-right: $spacing-unit / 2;
|
||||||
// padding-left: $spacing-unit / 2;
|
// padding-left: $spacing-unit / 2;
|
||||||
|
|
|
@ -19,6 +19,33 @@ There are two basic types available: user/organization pages and project pages.
|
||||||
The way to deploy these two types of sites are nearly identical, except for a
|
The way to deploy these two types of sites are nearly identical, except for a
|
||||||
few minor details.
|
few minor details.
|
||||||
|
|
||||||
|
<div class="note protip">
|
||||||
|
<h5>Use the <code>github-pages</code> gem</h5>
|
||||||
|
<p>
|
||||||
|
Our friends at GitHub have provided the
|
||||||
|
<a href="https://github.com/github/pages-gem">github-pages</a>
|
||||||
|
gem which is used to manage Jekyll and its dependencies on
|
||||||
|
GitHub Pages. Using it in your projects means that when you deploy
|
||||||
|
your site to GitHub Pages, you will not be caught by unexpected
|
||||||
|
differences between various versions of the gems. To use the
|
||||||
|
currently-deployed version of the gem in your project, add the
|
||||||
|
following to your <code>Gemfile</code>:
|
||||||
|
|
||||||
|
{% highlight ruby %}
|
||||||
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
|
require 'json'
|
||||||
|
require 'open-uri'
|
||||||
|
versions = JSON.parse(open('https://pages.github.com/versions.json').read)
|
||||||
|
|
||||||
|
gem 'github-pages', versions['github-pages']
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
This will ensure that when you run <code>bundle install</code>, you
|
||||||
|
have the correct version of the <code>github-pages</code> gem.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
### User and Organization Pages
|
### User and Organization Pages
|
||||||
|
|
||||||
User and organization pages live in a special GitHub repository dedicated to
|
User and organization pages live in a special GitHub repository dedicated to
|
||||||
|
|
Loading…
Reference in New Issue