Skip to content

Commit 7142a54

Browse files
committed
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
1 parent e5ba10e commit 7142a54

File tree

9 files changed

+36
-59
lines changed

9 files changed

+36
-59
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ _site
55
*.sublime-workspace
66
codekit-config.json
77
node_modules
8-
_asset_bundler_cache
8+
_asset_bundler_cache
9+
.jekyll-metadata

Gemfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
source "https://rubygems.org"
22

3-
gem 'jekyll', '2.5.3'
4-
gem 'jekyll-sitemap'
5-
gem 'octopress', '~> 3.0'
3+
gem "jekyll", "~> 3.0"
4+
gem "jekyll-sitemap"
5+
gem "jekyll-gist"
6+
gem "octopress"

Gemfile.lock

+11-40
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,28 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
addressable (2.3.8)
5-
blankslate (2.1.2.4)
6-
classifier-reborn (2.0.4)
7-
fast-stemmer (~> 1.0)
8-
coffee-script (2.4.1)
9-
coffee-script-source
10-
execjs
11-
coffee-script-source (1.10.0)
125
colorator (0.1)
13-
execjs (2.6.0)
146
faraday (0.9.2)
157
multipart-post (>= 1.2, < 3)
16-
fast-stemmer (1.0.2)
178
ffi (1.9.10)
18-
ffi (1.9.10-x64-mingw32)
19-
ffi (1.9.10-x86-mingw32)
20-
jekyll (2.5.3)
21-
classifier-reborn (~> 2.0)
9+
jekyll (3.1.1)
2210
colorator (~> 0.1)
23-
jekyll-coffeescript (~> 1.0)
24-
jekyll-gist (~> 1.0)
25-
jekyll-paginate (~> 1.0)
2611
jekyll-sass-converter (~> 1.0)
2712
jekyll-watch (~> 1.1)
2813
kramdown (~> 1.3)
29-
liquid (~> 2.6.1)
14+
liquid (~> 3.0)
3015
mercenary (~> 0.3.3)
31-
pygments.rb (~> 0.6.0)
32-
redcarpet (~> 3.1)
16+
rouge (~> 1.7)
3317
safe_yaml (~> 1.0)
34-
toml (~> 0.1.0)
35-
jekyll-coffeescript (1.0.1)
36-
coffee-script (~> 2.2)
3718
jekyll-gist (1.4.0)
3819
octokit (~> 4.2)
39-
jekyll-paginate (1.1.0)
4020
jekyll-sass-converter (1.4.0)
4121
sass (~> 3.4)
42-
jekyll-sitemap (0.9.0)
22+
jekyll-sitemap (0.10.0)
4323
jekyll-watch (1.3.1)
4424
listen (~> 3.0)
4525
kramdown (1.9.0)
46-
liquid (2.6.3)
26+
liquid (3.0.6)
4727
listen (3.0.5)
4828
rb-fsevent (>= 0.9.3)
4929
rb-inotify (>= 0.9)
@@ -61,39 +41,30 @@ GEM
6141
titlecase
6242
octopress-deploy (1.3.0)
6343
colorator
64-
octopress-escape-code (2.0.6)
65-
octopress-hooks (~> 2.0)
44+
octopress-escape-code (2.1.1)
45+
jekyll (~> 3.0)
6646
octopress-hooks (2.6.1)
6747
jekyll (>= 2.0)
68-
parslet (1.5.0)
69-
blankslate (~> 2.0)
70-
posix-spawn (0.3.11)
71-
pygments.rb (0.6.3)
72-
posix-spawn (~> 0.3.6)
73-
yajl-ruby (~> 1.2.0)
7448
rb-fsevent (0.9.7)
7549
rb-inotify (0.9.5)
7650
ffi (>= 0.5.0)
7751
redcarpet (3.3.4)
52+
rouge (1.10.1)
7853
safe_yaml (1.0.4)
7954
sass (3.4.21)
8055
sawyer (0.6.0)
8156
addressable (~> 2.3.5)
8257
faraday (~> 0.8, < 0.10)
8358
titlecase (0.1.1)
84-
toml (0.1.2)
85-
parslet (~> 1.5.0)
86-
yajl-ruby (1.2.1)
8759

8860
PLATFORMS
8961
ruby
90-
x64-mingw32
91-
x86-mingw32
9262

9363
DEPENDENCIES
94-
jekyll (= 2.5.3)
64+
jekyll (~> 3.0)
65+
jekyll-gist
9566
jekyll-sitemap
96-
octopress (~> 3.0)
67+
octopress
9768

9869
BUNDLED WITH
9970
1.11.2

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Minimal Mistakes
22

3-
**[Minimal Mistakes](http://mmistakes.github.io/minimal-mistakes)** is a two column responsive Jekyll theme perfect for powering your GitHub hosted blog.
4-
5-
**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.
3+
**[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.
64

75
## Minimal Mistakes is all about:
86

@@ -20,6 +18,6 @@ See a [live version of Minimal Mistakes](http://mmistakes.github.io/minimal-mist
2018

2119
## Getting Started
2220

23-
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.
21+
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.
2422

2523
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.

_config.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@ url:
99

1010
permalink: /:categories/:title/
1111
markdown: kramdown
12-
highlighter: pygments
12+
highlighter: rouge
1313
sass:
1414
sass_dir: _sass
1515
style: compressed
1616
gems:
1717
- jekyll-sitemap
18+
- jekyll-gist
1819

1920
kramdown:
2021
auto_ids: true
2122
footnote_nr: 1
2223
entity_output: as_char
2324
toc_levels: 1..6
24-
use_coderay: false
25+
enable_coderay: false
2526

2627

2728
# Octopress

_posts/2013-08-16-code-highlighting-post.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ layout: post
33
title: Syntax Highlighting Post
44
excerpt: "Demo post displaying the various ways of highlighting code in Markdown."
55
tags: [sample post, code, highlighting]
6-
modified: 2014-09-14
6+
modified: 2016-02-01
77
comments: true
88
---
99

1010
Syntax highlighting is a feature that displays source code, in different colors and fonts according to the category of terms. This feature facilitates writing in a structured language such as a programming language or a markup language as both structures and syntax errors are visually distinct. Highlighting does not affect the meaning of the text itself; it is intended only for human readers.[^1]
1111

1212
[^1]: <http://en.wikipedia.org/wiki/Syntax_highlighting>
1313

14-
### Pygments Code Blocks
14+
### Highlighted Code Blocks
1515

16-
To modify styling and highlight colors edit `/_sass/_pygments.scss`.
16+
To modify styling and highlight colors edit `/_sass/syntax.scss`.
1717

1818
{% highlight css %}
1919
#container {
@@ -73,7 +73,7 @@ end
7373

7474
### Fenced Code Blocks
7575

76-
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.
76+
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.
7777

7878
~~~ css
7979
#container {

_sass/pygments.scss renamed to _sass/syntax.scss

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
/* ==========================================================================
2-
Pygments.rb syntax highlighting
2+
Syntax highlighting
33
========================================================================== */
44

5+
pre.highlight {
6+
padding: 1em;
7+
}
8+
59
.highlight {
610
background-color: #efefef;
711
font-family: $code-font;
8-
@include font(12);
12+
@include font-rem(12);
13+
line-height: 1.5;
914
color: #333332;
1015
margin-bottom: 1.5em;
1116
@include rounded(4px);

assets/css/main.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ sitemap: false
1818
@import "normalize";
1919
@import "site";
2020
@import "typography";
21-
@import "pygments";
21+
@import "syntax";
2222
@import "coderay";
2323
@import "elements";
2424
@import "forms";

theme-setup/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ image:
1313

1414
## Installation
1515

16-
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.
16+
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.
1717

1818
If you are creating a new Jekyll site using Minimal Mistakes follow these steps:
1919

@@ -38,7 +38,7 @@ If you want to use Minimal Mistakes with an existing Jekyll site follow these st
3838

3939
## Running Jekyll
4040

41-
If `jekyll build` and `jekyll serve` throw errors you may have to run Jekyll with `bundle exec` instead.
41+
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`.
4242

4343
> 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.
4444
>

0 commit comments

Comments
 (0)