github-pages 168 → 169
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.
- checksums.yaml +4 -4
- data/lib/github-pages/configuration.rb +10 -1
- data/lib/github-pages/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1fb456579ddd031b41727097a8b3a425499fadf
|
4
|
+
data.tar.gz: 8ce6b0dadf28e5d85a1116b486125b070e9d8cac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae26b05af8455179d5534a2820479f99d0037bd3828e733d523639ecbbf35e9d3201011ab20d0aa7bc96f7b4e41b234ddb07f8b883fd81c6ee265caefb01b8d9
|
7
|
+
data.tar.gz: '0115447091c3ec399b4da301c0d4ef5c5ddbb6566f805538873c5463f831876a246f7eb09a84deb38538c47fd54274c6b063241f88b2b5238c9d47f6e5279f76'
|
@@ -17,6 +17,7 @@ module GitHubPages
|
|
17
17
|
"plugins" => GitHubPages::Plugins::DEFAULT_PLUGINS,
|
18
18
|
"future" => true,
|
19
19
|
"theme" => "jekyll-theme-primer",
|
20
|
+
"markdown" => "kramdown",
|
20
21
|
"kramdown" => {
|
21
22
|
"input" => "GFM",
|
22
23
|
"hard_wrap" => false,
|
@@ -47,7 +48,6 @@ module GitHubPages
|
|
47
48
|
"plugins_dir" => SecureRandom.hex,
|
48
49
|
"whitelist" => GitHubPages::Plugins::PLUGIN_WHITELIST,
|
49
50
|
"highlighter" => "rouge",
|
50
|
-
"markdown" => "kramdown",
|
51
51
|
"kramdown" => {
|
52
52
|
"template" => "",
|
53
53
|
"math_engine" => "mathjax",
|
@@ -103,6 +103,8 @@ module GitHubPages
|
|
103
103
|
# Merge overwrites into user config
|
104
104
|
config = Jekyll::Utils.deep_merge_hashes config, OVERRIDES
|
105
105
|
|
106
|
+
restrict_markdown_processor(config)
|
107
|
+
|
106
108
|
# Ensure we have those gems we want.
|
107
109
|
config["plugins"] = Array(config["plugins"]) | DEFAULT_PLUGINS
|
108
110
|
|
@@ -117,6 +119,13 @@ module GitHubPages
|
|
117
119
|
config
|
118
120
|
end
|
119
121
|
|
122
|
+
# Ensure we're using Kramdown or CommonMarkGhPages. Force to Kramdown if
|
123
|
+
# neither of these.
|
124
|
+
def restrict_markdown_processor(config)
|
125
|
+
config["markdown"] = "kramdown" unless \
|
126
|
+
%w(kramdown commonmarkghpages).include?(config["markdown"].to_s.downcase)
|
127
|
+
end
|
128
|
+
|
120
129
|
# Set the site's configuration. Implemented as an `after_reset` hook.
|
121
130
|
# Equivalent #set! function contains the code of interest. This function
|
122
131
|
# guards against double-processing via the value in #processed.
|
data/lib/github-pages/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '169'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|