Support Jekyll 3.0

- Update to Jekyll v3.0
- Switch from Pygments.rb to Rouge for syntax highlighting
- Minor updates to syntax.scss partial and theme documentation
- Include jekyll-gist gem
- Close #192, #218
This commit is contained in:
Michael Rose 2015-10-30 14:02:58 -04:00
parent e5ba10ee7d
commit 7142a54650
9 changed files with 36 additions and 59 deletions

3
.gitignore vendored
View file

@ -5,4 +5,5 @@ _site
*.sublime-workspace *.sublime-workspace
codekit-config.json codekit-config.json
node_modules node_modules
_asset_bundler_cache _asset_bundler_cache
.jekyll-metadata

View file

@ -1,5 +1,6 @@
source "https://rubygems.org" source "https://rubygems.org"
gem 'jekyll', '2.5.3' gem "jekyll", "~> 3.0"
gem 'jekyll-sitemap' gem "jekyll-sitemap"
gem 'octopress', '~> 3.0' gem "jekyll-gist"
gem "octopress"

View file

@ -2,48 +2,28 @@ GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
addressable (2.3.8) addressable (2.3.8)
blankslate (2.1.2.4)
classifier-reborn (2.0.4)
fast-stemmer (~> 1.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.10.0)
colorator (0.1) colorator (0.1)
execjs (2.6.0)
faraday (0.9.2) faraday (0.9.2)
multipart-post (>= 1.2, < 3) multipart-post (>= 1.2, < 3)
fast-stemmer (1.0.2)
ffi (1.9.10) ffi (1.9.10)
ffi (1.9.10-x64-mingw32) jekyll (3.1.1)
ffi (1.9.10-x86-mingw32)
jekyll (2.5.3)
classifier-reborn (~> 2.0)
colorator (~> 0.1) colorator (~> 0.1)
jekyll-coffeescript (~> 1.0)
jekyll-gist (~> 1.0)
jekyll-paginate (~> 1.0)
jekyll-sass-converter (~> 1.0) jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1) jekyll-watch (~> 1.1)
kramdown (~> 1.3) kramdown (~> 1.3)
liquid (~> 2.6.1) liquid (~> 3.0)
mercenary (~> 0.3.3) mercenary (~> 0.3.3)
pygments.rb (~> 0.6.0) rouge (~> 1.7)
redcarpet (~> 3.1)
safe_yaml (~> 1.0) safe_yaml (~> 1.0)
toml (~> 0.1.0)
jekyll-coffeescript (1.0.1)
coffee-script (~> 2.2)
jekyll-gist (1.4.0) jekyll-gist (1.4.0)
octokit (~> 4.2) octokit (~> 4.2)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.4.0) jekyll-sass-converter (1.4.0)
sass (~> 3.4) sass (~> 3.4)
jekyll-sitemap (0.9.0) jekyll-sitemap (0.10.0)
jekyll-watch (1.3.1) jekyll-watch (1.3.1)
listen (~> 3.0) listen (~> 3.0)
kramdown (1.9.0) kramdown (1.9.0)
liquid (2.6.3) liquid (3.0.6)
listen (3.0.5) listen (3.0.5)
rb-fsevent (>= 0.9.3) rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9) rb-inotify (>= 0.9)
@ -61,39 +41,30 @@ GEM
titlecase titlecase
octopress-deploy (1.3.0) octopress-deploy (1.3.0)
colorator colorator
octopress-escape-code (2.0.6) octopress-escape-code (2.1.1)
octopress-hooks (~> 2.0) jekyll (~> 3.0)
octopress-hooks (2.6.1) octopress-hooks (2.6.1)
jekyll (>= 2.0) jekyll (>= 2.0)
parslet (1.5.0)
blankslate (~> 2.0)
posix-spawn (0.3.11)
pygments.rb (0.6.3)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.2.0)
rb-fsevent (0.9.7) rb-fsevent (0.9.7)
rb-inotify (0.9.5) rb-inotify (0.9.5)
ffi (>= 0.5.0) ffi (>= 0.5.0)
redcarpet (3.3.4) redcarpet (3.3.4)
rouge (1.10.1)
safe_yaml (1.0.4) safe_yaml (1.0.4)
sass (3.4.21) sass (3.4.21)
sawyer (0.6.0) sawyer (0.6.0)
addressable (~> 2.3.5) addressable (~> 2.3.5)
faraday (~> 0.8, < 0.10) faraday (~> 0.8, < 0.10)
titlecase (0.1.1) titlecase (0.1.1)
toml (0.1.2)
parslet (~> 1.5.0)
yajl-ruby (1.2.1)
PLATFORMS PLATFORMS
ruby ruby
x64-mingw32
x86-mingw32
DEPENDENCIES DEPENDENCIES
jekyll (= 2.5.3) jekyll (~> 3.0)
jekyll-gist
jekyll-sitemap jekyll-sitemap
octopress (~> 3.0) octopress
BUNDLED WITH BUNDLED WITH
1.11.2 1.11.2

View file

@ -1,8 +1,6 @@
# Minimal Mistakes # Minimal Mistakes
**[Minimal Mistakes](http://mmistakes.github.io/minimal-mistakes)** is a two column responsive Jekyll theme perfect for powering your GitHub hosted blog. **[Minimal Mistakes](http://mmistakes.github.io/minimal-mistakes)** is a two column responsive Jekyll theme perfect for powering your GitHub hosted blog built. Compatible with Jekyll 3.0 and up.
**Jekyll 3 Update:** A version of Minimal Mistakes compatible with Jekyll 3 can be found in the [`jekyll3` branch](https://github.com/mmistakes/minimal-mistakes/tree/jekyll3). GitHub Pages is [locked at version 2.4](https://pages.github.com/versions/) so some keep that in mind if you're trying to use 3.0 features that aren't supported there yet.
## Minimal Mistakes is all about: ## Minimal Mistakes is all about:
@ -20,6 +18,6 @@ See a [live version of Minimal Mistakes](http://mmistakes.github.io/minimal-mist
## Getting Started ## Getting Started
Minimal Mistakes takes advantage of Sass and data files to make customizing easier. These features require Jekyll 2.x and will not work with older versions of Jekyll. Minimal Mistakes takes advantage of Sass and data files to make customizing easier. These features require [Jekyll 2.x](https://github.com/mmistakes/minimal-mistakes/releases/tag/2.1.3) and will not work with older versions of Jekyll.
To learn how to install and use this theme check out the [Setup Guide](http://mmistakes.github.io/minimal-mistakes/theme-setup/) for more information. To learn how to install and use this theme check out the [Setup Guide](http://mmistakes.github.io/minimal-mistakes/theme-setup/) for more information.

View file

@ -9,19 +9,20 @@ url:
permalink: /:categories/:title/ permalink: /:categories/:title/
markdown: kramdown markdown: kramdown
highlighter: pygments highlighter: rouge
sass: sass:
sass_dir: _sass sass_dir: _sass
style: compressed style: compressed
gems: gems:
- jekyll-sitemap - jekyll-sitemap
- jekyll-gist
kramdown: kramdown:
auto_ids: true auto_ids: true
footnote_nr: 1 footnote_nr: 1
entity_output: as_char entity_output: as_char
toc_levels: 1..6 toc_levels: 1..6
use_coderay: false enable_coderay: false
# Octopress # Octopress

View file

@ -3,7 +3,7 @@ layout: post
title: Syntax Highlighting Post title: Syntax Highlighting Post
excerpt: "Demo post displaying the various ways of highlighting code in Markdown." excerpt: "Demo post displaying the various ways of highlighting code in Markdown."
tags: [sample post, code, highlighting] tags: [sample post, code, highlighting]
modified: 2014-09-14 modified: 2016-02-01
comments: true comments: true
--- ---
@ -11,9 +11,9 @@ Syntax highlighting is a feature that displays source code, in different colors
[^1]: <http://en.wikipedia.org/wiki/Syntax_highlighting> [^1]: <http://en.wikipedia.org/wiki/Syntax_highlighting>
### Pygments Code Blocks ### Highlighted Code Blocks
To modify styling and highlight colors edit `/_sass/_pygments.scss`. To modify styling and highlight colors edit `/_sass/syntax.scss`.
{% highlight css %} {% highlight css %}
#container { #container {
@ -73,7 +73,7 @@ end
### Fenced Code Blocks ### Fenced Code Blocks
To modify styling and highlight colors edit `/_sass/_coderay.scss`. Line numbers and a few other things can be modified in `_config.yml`. Consult [Jekyll's documentation](http://jekyllrb.com/docs/configuration/) for more information. To modify styling and highlight colors edit `/_sass/coderay.scss`. Line numbers and a few other things can be modified in `_config.yml`. Consult [Jekyll's documentation](http://jekyllrb.com/docs/configuration/) for more information.
~~~ css ~~~ css
#container { #container {

View file

@ -1,11 +1,16 @@
/* ========================================================================== /* ==========================================================================
Pygments.rb syntax highlighting Syntax highlighting
========================================================================== */ ========================================================================== */
pre.highlight {
padding: 1em;
}
.highlight { .highlight {
background-color: #efefef; background-color: #efefef;
font-family: $code-font; font-family: $code-font;
@include font(12); @include font-rem(12);
line-height: 1.5;
color: #333332; color: #333332;
margin-bottom: 1.5em; margin-bottom: 1.5em;
@include rounded(4px); @include rounded(4px);

View file

@ -18,7 +18,7 @@ sitemap: false
@import "normalize"; @import "normalize";
@import "site"; @import "site";
@import "typography"; @import "typography";
@import "pygments"; @import "syntax";
@import "coderay"; @import "coderay";
@import "elements"; @import "elements";
@import "forms"; @import "forms";

View file

@ -13,7 +13,7 @@ image:
## Installation ## Installation
Minimal Mistakes now requires [Jekyll](http://jekyllrb.com/) 2.2+. Make sure to run `gem update jekyll` if you aren't on the latest version or `gem install jekyll` if this is your first time installing it. Minimal Mistakes now requires [Jekyll](http://jekyllrb.com/) 3.0. Make sure to run `bundle update` if you aren't on the latest version to update all gem dependencies.
If you are creating a new Jekyll site using Minimal Mistakes follow these steps: If you are creating a new Jekyll site using Minimal Mistakes follow these steps:
@ -38,7 +38,7 @@ If you want to use Minimal Mistakes with an existing Jekyll site follow these st
## Running Jekyll ## Running Jekyll
If `jekyll build` and `jekyll serve` throw errors you may have to run Jekyll with `bundle exec` instead. The preferred method for running Jekyll is with `bundle exec`, but if you're willing to deal gem conflicts feel free to go cowboy with a `jekyll build` or `jekyll serve`.
> In some cases, running executables without bundle exec may work, if the executable happens to be installed in your system and does not pull in any gems that conflict with your bundle. > In some cases, running executables without bundle exec may work, if the executable happens to be installed in your system and does not pull in any gems that conflict with your bundle.
> >