github-pages 171 → 172
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 +14 -3
- data/lib/github-pages/dependencies.rb +1 -0
- data/lib/github-pages/plugins.rb +2 -0
- data/lib/github-pages/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06ec21daca222772e82585c33d106c27aa9d9fcb
|
4
|
+
data.tar.gz: 454482d6fa102ac0d2aa28ac761af849d1478672
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b15b9952c3ba5b5086c683717b4d526b7ddf3b793a0627b1c97fb9a84bff478bacc1f5a1ec9a626a0d431dd3cb79c2418bc83ba9e37bfeac8f72a02ec4947512
|
7
|
+
data.tar.gz: 6b3e7555470c2dc0618e2db4fc416e84509927f5440220b934778dcbe2b0f86910f5fa87c9803afe13b3f24e7a9b33c65870b64c696664ba6ced818ec66eb084
|
@@ -103,7 +103,7 @@ module GitHubPages
|
|
103
103
|
# Merge overwrites into user config
|
104
104
|
config = Jekyll::Utils.deep_merge_hashes config, OVERRIDES
|
105
105
|
|
106
|
-
|
106
|
+
restrict_and_config_markdown_processor(config)
|
107
107
|
|
108
108
|
# Ensure we have those gems we want.
|
109
109
|
config["plugins"] = Array(config["plugins"]) | DEFAULT_PLUGINS
|
@@ -121,9 +121,20 @@ module GitHubPages
|
|
121
121
|
|
122
122
|
# Ensure we're using Kramdown or GFM. Force to Kramdown if
|
123
123
|
# neither of these.
|
124
|
-
|
124
|
+
#
|
125
|
+
# This can get called multiply on the same config, so try to
|
126
|
+
# be idempotentish.
|
127
|
+
def restrict_and_config_markdown_processor(config)
|
125
128
|
config["markdown"] = "kramdown" unless \
|
126
|
-
%w(kramdown gfm).include?(config["markdown"].to_s.downcase)
|
129
|
+
%w(kramdown gfm commonmarkghpages).include?(config["markdown"].to_s.downcase)
|
130
|
+
|
131
|
+
return unless config["markdown"].to_s.casecmp("gfm").zero?
|
132
|
+
|
133
|
+
config["markdown"] = "CommonMarkGhPages"
|
134
|
+
config["commonmark"] = {
|
135
|
+
"extensions" => %w(table strikethrough autolink tagfilter),
|
136
|
+
"options" => %w(footnotes),
|
137
|
+
}
|
127
138
|
end
|
128
139
|
|
129
140
|
# Set the site's configuration. Implemented as an `after_reset` hook.
|
data/lib/github-pages/plugins.rb
CHANGED
@@ -6,6 +6,7 @@ module GitHubPages
|
|
6
6
|
# Plugins which are activated by default
|
7
7
|
DEFAULT_PLUGINS = %w(
|
8
8
|
jekyll-coffeescript
|
9
|
+
jekyll-commonmark-ghpages
|
9
10
|
jekyll-gist
|
10
11
|
jekyll-github-metadata
|
11
12
|
jekyll-paginate
|
@@ -20,6 +21,7 @@ module GitHubPages
|
|
20
21
|
# Plugins allowed by GitHub Pages
|
21
22
|
PLUGIN_WHITELIST = %w(
|
22
23
|
jekyll-coffeescript
|
24
|
+
jekyll-commonmark-ghpages
|
23
25
|
jekyll-feed
|
24
26
|
jekyll-gist
|
25
27
|
jekyll-github-metadata
|
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: '172'
|
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-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.14.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jekyll-commonmark-ghpages
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.1.3
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.1.3
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: liquid
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|