jekyll 3.9.3 → 4.0.0.pre.alpha1
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/.rubocop.yml +27 -50
- data/LICENSE +1 -1
- data/README.markdown +46 -17
- data/lib/blank_template/_config.yml +3 -0
- data/lib/blank_template/_layouts/default.html +12 -0
- data/lib/blank_template/_sass/main.scss +9 -0
- data/lib/blank_template/assets/css/main.scss +4 -0
- data/lib/blank_template/index.md +8 -0
- data/lib/jekyll/cache.rb +183 -0
- data/lib/jekyll/cleaner.rb +2 -1
- data/lib/jekyll/collection.rb +78 -8
- data/lib/jekyll/command.rb +31 -6
- data/lib/jekyll/commands/build.rb +11 -20
- data/lib/jekyll/commands/clean.rb +2 -0
- data/lib/jekyll/commands/doctor.rb +15 -8
- data/lib/jekyll/commands/help.rb +1 -1
- data/lib/jekyll/commands/new.rb +37 -42
- data/lib/jekyll/commands/new_theme.rb +30 -28
- data/lib/jekyll/commands/serve/live_reload_reactor.rb +6 -10
- data/lib/jekyll/commands/serve/servlet.rb +15 -19
- data/lib/jekyll/commands/serve.rb +46 -86
- data/lib/jekyll/configuration.rb +26 -26
- data/lib/jekyll/converters/identity.rb +18 -0
- data/lib/jekyll/converters/markdown/kramdown_parser.rb +1 -10
- data/lib/jekyll/converters/markdown.rb +49 -40
- data/lib/jekyll/converters/smartypants.rb +34 -14
- data/lib/jekyll/convertible.rb +11 -13
- data/lib/jekyll/deprecator.rb +1 -3
- data/lib/jekyll/document.rb +44 -41
- data/lib/jekyll/drops/collection_drop.rb +2 -3
- data/lib/jekyll/drops/document_drop.rb +2 -1
- data/lib/jekyll/drops/drop.rb +3 -6
- data/lib/jekyll/drops/excerpt_drop.rb +4 -0
- data/lib/jekyll/drops/site_drop.rb +4 -13
- data/lib/jekyll/drops/unified_payload_drop.rb +1 -0
- data/lib/jekyll/drops/url_drop.rb +1 -0
- data/lib/jekyll/entry_filter.rb +2 -1
- data/lib/jekyll/excerpt.rb +45 -34
- data/lib/jekyll/external.rb +10 -5
- data/lib/jekyll/filters/date_filters.rb +6 -3
- data/lib/jekyll/filters/grouping_filters.rb +1 -2
- data/lib/jekyll/filters/url_filters.rb +6 -1
- data/lib/jekyll/filters.rb +72 -31
- data/lib/jekyll/frontmatter_defaults.rb +35 -19
- data/lib/jekyll/hooks.rb +2 -3
- data/lib/jekyll/liquid_extensions.rb +0 -2
- data/lib/jekyll/liquid_renderer/file.rb +14 -3
- data/lib/jekyll/liquid_renderer/table.rb +67 -65
- data/lib/jekyll/liquid_renderer.rb +13 -1
- data/lib/jekyll/log_adapter.rb +5 -1
- data/lib/jekyll/mime.types +80 -195
- data/lib/jekyll/page.rb +10 -11
- data/lib/jekyll/page_without_a_file.rb +0 -4
- data/lib/jekyll/plugin.rb +5 -11
- data/lib/jekyll/plugin_manager.rb +2 -0
- data/lib/jekyll/reader.rb +38 -8
- data/lib/jekyll/readers/data_reader.rb +5 -5
- data/lib/jekyll/readers/layout_reader.rb +2 -12
- data/lib/jekyll/readers/post_reader.rb +29 -17
- data/lib/jekyll/readers/static_file_reader.rb +1 -1
- data/lib/jekyll/readers/theme_assets_reader.rb +7 -5
- data/lib/jekyll/regenerator.rb +4 -12
- data/lib/jekyll/renderer.rb +14 -25
- data/lib/jekyll/site.rb +78 -34
- data/lib/jekyll/static_file.rb +47 -11
- data/lib/jekyll/stevenson.rb +2 -3
- data/lib/jekyll/tags/highlight.rb +22 -52
- data/lib/jekyll/tags/include.rb +27 -48
- data/lib/jekyll/tags/link.rb +11 -7
- data/lib/jekyll/tags/post_url.rb +17 -16
- data/lib/jekyll/theme.rb +12 -23
- data/lib/jekyll/theme_builder.rb +91 -89
- data/lib/jekyll/url.rb +3 -2
- data/lib/jekyll/utils/ansi.rb +1 -1
- data/lib/jekyll/utils/exec.rb +0 -1
- data/lib/jekyll/utils/internet.rb +2 -4
- data/lib/jekyll/utils/platforms.rb +8 -8
- data/lib/jekyll/utils/thread_event.rb +1 -5
- data/lib/jekyll/utils/win_tz.rb +47 -18
- data/lib/jekyll/utils.rb +5 -4
- data/lib/jekyll/version.rb +1 -1
- data/lib/jekyll.rb +5 -0
- data/lib/site_template/.gitignore +2 -0
- data/lib/site_template/404.html +1 -0
- data/lib/site_template/_config.yml +17 -5
- data/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb +5 -1
- data/lib/site_template/{about.md → about.markdown} +0 -0
- data/lib/site_template/{index.md → index.markdown} +0 -0
- data/lib/theme_template/gitignore.erb +1 -0
- data/rubocop/jekyll/assert_equal_literal_actual.rb +149 -0
- metadata +75 -48
- data/lib/jekyll/commands/serve/mime_types_charset.json +0 -71
- data/lib/jekyll/converters/markdown/rdiscount_parser.rb +0 -37
- data/lib/jekyll/converters/markdown/redcarpet_parser.rb +0 -112
- data/lib/jekyll/utils/rouge.rb +0 -22
data/lib/jekyll/version.rb
CHANGED
data/lib/jekyll.rb
CHANGED
@@ -54,6 +54,7 @@ module Jekyll
|
|
54
54
|
autoload :FrontmatterDefaults, "jekyll/frontmatter_defaults"
|
55
55
|
autoload :Hooks, "jekyll/hooks"
|
56
56
|
autoload :Layout, "jekyll/layout"
|
57
|
+
autoload :Cache, "jekyll/cache"
|
57
58
|
autoload :CollectionReader, "jekyll/readers/collection_reader"
|
58
59
|
autoload :DataReader, "jekyll/readers/data_reader"
|
59
60
|
autoload :LayoutReader, "jekyll/readers/layout_reader"
|
@@ -175,6 +176,10 @@ module Jekyll
|
|
175
176
|
|
176
177
|
return clean_path if clean_path.eql?(base_directory)
|
177
178
|
|
179
|
+
# remove any remaining extra leading slashes not stripped away by calling
|
180
|
+
# `File.expand_path` above.
|
181
|
+
clean_path.squeeze!("/")
|
182
|
+
|
178
183
|
if clean_path.start_with?(base_directory.sub(%r!\z!, "/"))
|
179
184
|
clean_path
|
180
185
|
else
|
data/lib/site_template/404.html
CHANGED
@@ -7,12 +7,17 @@
|
|
7
7
|
#
|
8
8
|
# For technical reasons, this file is *NOT* reloaded automatically when you use
|
9
9
|
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
|
10
|
-
|
10
|
+
#
|
11
|
+
# If you need help with YAML syntax, here are some quick references for you:
|
12
|
+
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
|
13
|
+
# https://learnxinyminutes.com/docs/yaml/
|
14
|
+
#
|
11
15
|
# Site settings
|
12
16
|
# These are used to personalize your new site. If you look in the HTML files,
|
13
17
|
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
|
14
18
|
# You can create any custom variable you would like, and they will be accessible
|
15
19
|
# in the templates via {{ site.myvariable }}.
|
20
|
+
|
16
21
|
title: Your awesome title
|
17
22
|
email: your-email@example.com
|
18
23
|
description: >- # this means to ignore newlines until "baseurl:"
|
@@ -25,18 +30,25 @@ twitter_username: jekyllrb
|
|
25
30
|
github_username: jekyll
|
26
31
|
|
27
32
|
# Build settings
|
28
|
-
markdown: kramdown
|
29
33
|
theme: minima
|
30
34
|
plugins:
|
31
35
|
- jekyll-feed
|
32
36
|
|
33
37
|
# Exclude from processing.
|
34
|
-
# The following items will not be processed, by default.
|
35
|
-
#
|
38
|
+
# The following items will not be processed, by default.
|
39
|
+
# Any item listed under the `exclude:` key here will be automatically added to
|
40
|
+
# the internal "default list".
|
41
|
+
#
|
42
|
+
# Excluded items can be processed by explicitly listing the directories or
|
43
|
+
# their entries' file path in the `include:` list.
|
44
|
+
#
|
36
45
|
# exclude:
|
46
|
+
# - .sass-cache/
|
47
|
+
# - .jekyll-cache/
|
48
|
+
# - gemfiles/
|
37
49
|
# - Gemfile
|
38
50
|
# - Gemfile.lock
|
39
|
-
# - node_modules
|
51
|
+
# - node_modules/
|
40
52
|
# - vendor/bundle/
|
41
53
|
# - vendor/cache/
|
42
54
|
# - vendor/gems/
|
@@ -6,7 +6,11 @@ categories: jekyll update
|
|
6
6
|
---
|
7
7
|
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
|
8
8
|
|
9
|
-
|
9
|
+
Jekyll requires blog post files to be named according to the following format:
|
10
|
+
|
11
|
+
`YEAR-MONTH-DAY-title.MARKUP`
|
12
|
+
|
13
|
+
Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.
|
10
14
|
|
11
15
|
Jekyll also offers powerful support for code snippets:
|
12
16
|
|
File without changes
|
File without changes
|
@@ -0,0 +1,149 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RuboCop
|
4
|
+
module Cop
|
5
|
+
module Jekyll
|
6
|
+
# Checks for `assert_equal(exp, act, msg = nil)` calls containing literal values as
|
7
|
+
# second argument. The second argument should ideally be a method called on the tested
|
8
|
+
# instance.
|
9
|
+
#
|
10
|
+
# @example
|
11
|
+
# # bad
|
12
|
+
# assert_equal @foo.bar, "foobar"
|
13
|
+
# assert_equal @alpha.beta, { "foo" => "bar", "lorem" => "ipsum" }
|
14
|
+
# assert_equal @alpha.omega, ["foobar", "lipsum"]
|
15
|
+
#
|
16
|
+
# # good
|
17
|
+
# assert_equal "foobar", @foo.bar
|
18
|
+
#
|
19
|
+
# assert_equal(
|
20
|
+
# { "foo" => "bar", "lorem" => "ipsum" },
|
21
|
+
# @alpha.beta
|
22
|
+
# )
|
23
|
+
#
|
24
|
+
# assert_equal(
|
25
|
+
# ["foobar", "lipsum"],
|
26
|
+
# @alpha.omega
|
27
|
+
# )
|
28
|
+
#
|
29
|
+
class AssertEqualLiteralActual < Cop
|
30
|
+
MSG = "Provide the 'expected value' as the first argument to `assert_equal`.".freeze
|
31
|
+
|
32
|
+
SIMPLE_LITERALS = %i(
|
33
|
+
true
|
34
|
+
false
|
35
|
+
nil
|
36
|
+
int
|
37
|
+
float
|
38
|
+
str
|
39
|
+
sym
|
40
|
+
complex
|
41
|
+
rational
|
42
|
+
regopt
|
43
|
+
).freeze
|
44
|
+
|
45
|
+
COMPLEX_LITERALS = %i(
|
46
|
+
array
|
47
|
+
hash
|
48
|
+
pair
|
49
|
+
irange
|
50
|
+
erange
|
51
|
+
regexp
|
52
|
+
).freeze
|
53
|
+
|
54
|
+
def_node_matcher :literal_actual?, <<-PATTERN
|
55
|
+
(send nil? :assert_equal $(send ...) $#literal?)
|
56
|
+
PATTERN
|
57
|
+
|
58
|
+
def_node_matcher :literal_actual_with_msg?, <<-PATTERN
|
59
|
+
(send nil? :assert_equal $(send ...) $#literal? $#opt_msg?)
|
60
|
+
PATTERN
|
61
|
+
|
62
|
+
def on_send(node)
|
63
|
+
return unless literal_actual?(node) || literal_actual_with_msg?(node)
|
64
|
+
add_offense(node, location: :expression)
|
65
|
+
end
|
66
|
+
|
67
|
+
def autocorrect(node)
|
68
|
+
lambda do |corrector|
|
69
|
+
corrector.replace(node.loc.expression, replacement(node))
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
private
|
74
|
+
|
75
|
+
def opt_msg?(node)
|
76
|
+
node&.source
|
77
|
+
end
|
78
|
+
|
79
|
+
# This is not implement using a NodePattern because it seems
|
80
|
+
# to not be able to match against an explicit (nil) sexp
|
81
|
+
def literal?(node)
|
82
|
+
node && (simple_literal?(node) || complex_literal?(node))
|
83
|
+
end
|
84
|
+
|
85
|
+
def simple_literal?(node)
|
86
|
+
SIMPLE_LITERALS.include?(node.type)
|
87
|
+
end
|
88
|
+
|
89
|
+
def complex_literal?(node)
|
90
|
+
COMPLEX_LITERALS.include?(node.type) &&
|
91
|
+
node.each_child_node.all?(&method(:literal?))
|
92
|
+
end
|
93
|
+
|
94
|
+
def replacement(node)
|
95
|
+
_, _, first_param, second_param, optional_param = *node
|
96
|
+
|
97
|
+
replaced_text = \
|
98
|
+
if second_param.type == :hash
|
99
|
+
replace_hash_with_variable(first_param.source, second_param.source)
|
100
|
+
elsif second_param.type == :array && second_param.source != "[]"
|
101
|
+
replace_array_with_variable(first_param.source, second_param.source)
|
102
|
+
else
|
103
|
+
replace_based_on_line_length(first_param.source, second_param.source)
|
104
|
+
end
|
105
|
+
|
106
|
+
return "#{replaced_text}, #{optional_param.source}" if optional_param
|
107
|
+
replaced_text
|
108
|
+
end
|
109
|
+
|
110
|
+
def replace_based_on_line_length(first_expression, second_expression)
|
111
|
+
result = "assert_equal #{second_expression}, #{first_expression}"
|
112
|
+
return result if result.length < 80
|
113
|
+
|
114
|
+
# fold long lines independent of Rubocop configuration for better readability
|
115
|
+
<<~TEXT
|
116
|
+
assert_equal(
|
117
|
+
#{second_expression},
|
118
|
+
#{first_expression}
|
119
|
+
)
|
120
|
+
TEXT
|
121
|
+
end
|
122
|
+
|
123
|
+
def replace_hash_with_variable(first_expression, second_expression)
|
124
|
+
expect_expression = if second_expression.start_with?("{")
|
125
|
+
second_expression
|
126
|
+
else
|
127
|
+
"{#{second_expression}}"
|
128
|
+
end
|
129
|
+
<<~TEXT
|
130
|
+
expected = #{expect_expression}
|
131
|
+
assert_equal expected, #{first_expression}
|
132
|
+
TEXT
|
133
|
+
end
|
134
|
+
|
135
|
+
def replace_array_with_variable(first_expression, second_expression)
|
136
|
+
expect_expression = if second_expression.start_with?("%")
|
137
|
+
second_expression
|
138
|
+
else
|
139
|
+
Array(second_expression)
|
140
|
+
end
|
141
|
+
<<~TEXT
|
142
|
+
expected = #{expect_expression}
|
143
|
+
assert_equal expected, #{first_expression}
|
144
|
+
TEXT
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0.pre.alpha1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
8
|
+
- Parker Moore
|
9
|
+
- Matt Rogers
|
8
10
|
autorequire:
|
9
11
|
bindir: exe
|
10
12
|
cert_chain: []
|
11
|
-
date:
|
13
|
+
date: 2019-03-19 00:00:00.000000000 Z
|
12
14
|
dependencies:
|
13
15
|
- !ruby/object:Gem::Dependency
|
14
16
|
name: addressable
|
@@ -58,7 +60,7 @@ dependencies:
|
|
58
60
|
requirements:
|
59
61
|
- - ">="
|
60
62
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
63
|
+
version: 0.9.5
|
62
64
|
- - "<"
|
63
65
|
- !ruby/object:Gem::Version
|
64
66
|
version: '2'
|
@@ -68,7 +70,7 @@ dependencies:
|
|
68
70
|
requirements:
|
69
71
|
- - ">="
|
70
72
|
- !ruby/object:Gem::Version
|
71
|
-
version:
|
73
|
+
version: 0.9.5
|
72
74
|
- - "<"
|
73
75
|
- !ruby/object:Gem::Version
|
74
76
|
version: '2'
|
@@ -100,6 +102,34 @@ dependencies:
|
|
100
102
|
- - "~>"
|
101
103
|
- !ruby/object:Gem::Version
|
102
104
|
version: '2.0'
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: kramdown
|
107
|
+
requirement: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '2.1'
|
112
|
+
type: :runtime
|
113
|
+
prerelease: false
|
114
|
+
version_requirements: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - "~>"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '2.1'
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: kramdown-parser-gfm
|
121
|
+
requirement: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '1.0'
|
126
|
+
type: :runtime
|
127
|
+
prerelease: false
|
128
|
+
version_requirements: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '1.0'
|
103
133
|
- !ruby/object:Gem::Dependency
|
104
134
|
name: liquid
|
105
135
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,22 +176,16 @@ dependencies:
|
|
146
176
|
name: rouge
|
147
177
|
requirement: !ruby/object:Gem::Requirement
|
148
178
|
requirements:
|
149
|
-
- - "
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: '1.7'
|
152
|
-
- - "<"
|
179
|
+
- - "~>"
|
153
180
|
- !ruby/object:Gem::Version
|
154
|
-
version: '
|
181
|
+
version: '3.0'
|
155
182
|
type: :runtime
|
156
183
|
prerelease: false
|
157
184
|
version_requirements: !ruby/object:Gem::Requirement
|
158
185
|
requirements:
|
159
|
-
- - "
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
version: '1.7'
|
162
|
-
- - "<"
|
186
|
+
- - "~>"
|
163
187
|
- !ruby/object:Gem::Version
|
164
|
-
version: '
|
188
|
+
version: '3.0'
|
165
189
|
- !ruby/object:Gem::Dependency
|
166
190
|
name: safe_yaml
|
167
191
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,28 +200,9 @@ dependencies:
|
|
176
200
|
- - "~>"
|
177
201
|
- !ruby/object:Gem::Version
|
178
202
|
version: '1.0'
|
179
|
-
- !ruby/object:Gem::Dependency
|
180
|
-
name: kramdown
|
181
|
-
requirement: !ruby/object:Gem::Requirement
|
182
|
-
requirements:
|
183
|
-
- - ">="
|
184
|
-
- !ruby/object:Gem::Version
|
185
|
-
version: '1.17'
|
186
|
-
- - "<"
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version: '3'
|
189
|
-
type: :runtime
|
190
|
-
prerelease: false
|
191
|
-
version_requirements: !ruby/object:Gem::Requirement
|
192
|
-
requirements:
|
193
|
-
- - ">="
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
version: '1.17'
|
196
|
-
- - "<"
|
197
|
-
- !ruby/object:Gem::Version
|
198
|
-
version: '3'
|
199
203
|
description: Jekyll is a simple, blog aware, static site generator.
|
200
|
-
email:
|
204
|
+
email:
|
205
|
+
- maintainers@jekyllrb.com
|
201
206
|
executables:
|
202
207
|
- jekyll
|
203
208
|
extensions: []
|
@@ -209,7 +214,13 @@ files:
|
|
209
214
|
- LICENSE
|
210
215
|
- README.markdown
|
211
216
|
- exe/jekyll
|
217
|
+
- lib/blank_template/_config.yml
|
218
|
+
- lib/blank_template/_layouts/default.html
|
219
|
+
- lib/blank_template/_sass/main.scss
|
220
|
+
- lib/blank_template/assets/css/main.scss
|
221
|
+
- lib/blank_template/index.md
|
212
222
|
- lib/jekyll.rb
|
223
|
+
- lib/jekyll/cache.rb
|
213
224
|
- lib/jekyll/cleaner.rb
|
214
225
|
- lib/jekyll/collection.rb
|
215
226
|
- lib/jekyll/command.rb
|
@@ -222,7 +233,6 @@ files:
|
|
222
233
|
- lib/jekyll/commands/serve.rb
|
223
234
|
- lib/jekyll/commands/serve/live_reload_reactor.rb
|
224
235
|
- lib/jekyll/commands/serve/livereload_assets/livereload.js
|
225
|
-
- lib/jekyll/commands/serve/mime_types_charset.json
|
226
236
|
- lib/jekyll/commands/serve/servlet.rb
|
227
237
|
- lib/jekyll/commands/serve/websockets.rb
|
228
238
|
- lib/jekyll/configuration.rb
|
@@ -230,8 +240,6 @@ files:
|
|
230
240
|
- lib/jekyll/converters/identity.rb
|
231
241
|
- lib/jekyll/converters/markdown.rb
|
232
242
|
- lib/jekyll/converters/markdown/kramdown_parser.rb
|
233
|
-
- lib/jekyll/converters/markdown/rdiscount_parser.rb
|
234
|
-
- lib/jekyll/converters/markdown/redcarpet_parser.rb
|
235
243
|
- lib/jekyll/converters/smartypants.rb
|
236
244
|
- lib/jekyll/convertible.rb
|
237
245
|
- lib/jekyll/deprecator.rb
|
@@ -294,7 +302,6 @@ files:
|
|
294
302
|
- lib/jekyll/utils/exec.rb
|
295
303
|
- lib/jekyll/utils/internet.rb
|
296
304
|
- lib/jekyll/utils/platforms.rb
|
297
|
-
- lib/jekyll/utils/rouge.rb
|
298
305
|
- lib/jekyll/utils/thread_event.rb
|
299
306
|
- lib/jekyll/utils/win_tz.rb
|
300
307
|
- lib/jekyll/version.rb
|
@@ -302,8 +309,8 @@ files:
|
|
302
309
|
- lib/site_template/404.html
|
303
310
|
- lib/site_template/_config.yml
|
304
311
|
- lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb
|
305
|
-
- lib/site_template/about.
|
306
|
-
- lib/site_template/index.
|
312
|
+
- lib/site_template/about.markdown
|
313
|
+
- lib/site_template/index.markdown
|
307
314
|
- lib/theme_template/CODE_OF_CONDUCT.md.erb
|
308
315
|
- lib/theme_template/Gemfile
|
309
316
|
- lib/theme_template/LICENSE.txt.erb
|
@@ -318,13 +325,33 @@ files:
|
|
318
325
|
- lib/theme_template/gitignore.erb
|
319
326
|
- lib/theme_template/theme.gemspec.erb
|
320
327
|
- rubocop/jekyll.rb
|
328
|
+
- rubocop/jekyll/assert_equal_literal_actual.rb
|
321
329
|
- rubocop/jekyll/no_p_allowed.rb
|
322
330
|
- rubocop/jekyll/no_puts_allowed.rb
|
323
|
-
homepage: https://
|
331
|
+
homepage: https://jekyllrb.com
|
324
332
|
licenses:
|
325
333
|
- MIT
|
326
|
-
metadata:
|
327
|
-
|
334
|
+
metadata:
|
335
|
+
bug_tracker_uri: https://github.com/jekyll/jekyll/issues
|
336
|
+
changelog_uri: https://github.com/jekyll/jekyll/releases
|
337
|
+
homepage_uri: https://jekyllrb.com
|
338
|
+
source_code_uri: https://github.com/jekyll/jekyll
|
339
|
+
post_install_message: |
|
340
|
+
----------------------------------------------------------------------------------
|
341
|
+
This version of Jekyll comes with some major changes.
|
342
|
+
|
343
|
+
Most notably:
|
344
|
+
* Our `link` tag now comes with the `relative_url` filter incorporated into it.
|
345
|
+
You should no longer prepend `{{ site.baseurl }}` to `{% link foo.md %}`
|
346
|
+
For further details: https://github.com/jekyll/jekyll/pull/6727
|
347
|
+
|
348
|
+
* Our `highlight` tag no longer parses Liquid and Liquid-like constructs in the
|
349
|
+
tag's content body. While this means you no longer need to enclose the content
|
350
|
+
within a `{% raw %}{% endraw %}` block, it also means that you can no longer
|
351
|
+
do the following as well:
|
352
|
+
`{% highlight html %}{% include snippet.html %}{% endhighlight %}`
|
353
|
+
For further details: https://github.com/jekyll/jekyll/pull/6821
|
354
|
+
----------------------------------------------------------------------------------
|
328
355
|
rdoc_options:
|
329
356
|
- "--charset=UTF-8"
|
330
357
|
require_paths:
|
@@ -333,15 +360,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
333
360
|
requirements:
|
334
361
|
- - ">="
|
335
362
|
- !ruby/object:Gem::Version
|
336
|
-
version: 2.
|
363
|
+
version: 2.4.0
|
337
364
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
338
365
|
requirements:
|
339
366
|
- - ">="
|
340
367
|
- !ruby/object:Gem::Version
|
341
|
-
version:
|
368
|
+
version: 2.7.0
|
342
369
|
requirements: []
|
343
|
-
rubygems_version: 3.
|
370
|
+
rubygems_version: 3.0.3
|
344
371
|
signing_key:
|
345
|
-
specification_version:
|
372
|
+
specification_version: 4
|
346
373
|
summary: A simple, blog aware, static site generator.
|
347
374
|
test_files: []
|
@@ -1,71 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"application/javascript": "UTF-8",
|
3
|
-
"application/json": "UTF-8",
|
4
|
-
"application/manifest+json": "UTF-8",
|
5
|
-
"application/vnd.syncml+xml": "UTF-8",
|
6
|
-
"application/vnd.syncml.dm+wbxml": "UTF-8",
|
7
|
-
"application/vnd.syncml.dm+xml": "UTF-8",
|
8
|
-
"application/vnd.syncml.dmddf+xml": "UTF-8",
|
9
|
-
"application/vnd.wap.wbxml": "UTF-8",
|
10
|
-
"text/cache-manifest": "UTF-8",
|
11
|
-
"text/calendar": "UTF-8",
|
12
|
-
"text/coffeescript": "UTF-8",
|
13
|
-
"text/css": "UTF-8",
|
14
|
-
"text/csv": "UTF-8",
|
15
|
-
"text/html": "UTF-8",
|
16
|
-
"text/jade": "UTF-8",
|
17
|
-
"text/jsx": "UTF-8",
|
18
|
-
"text/less": "UTF-8",
|
19
|
-
"text/markdown": "UTF-8",
|
20
|
-
"text/mathml": "UTF-8",
|
21
|
-
"text/mdx": "UTF-8",
|
22
|
-
"text/n3": "UTF-8",
|
23
|
-
"text/plain": "UTF-8",
|
24
|
-
"text/prs.lines.tag": "UTF-8",
|
25
|
-
"text/richtext": "UTF-8",
|
26
|
-
"text/sgml": "UTF-8",
|
27
|
-
"text/shex": "UTF-8",
|
28
|
-
"text/slim": "UTF-8",
|
29
|
-
"text/spdx": "UTF-8",
|
30
|
-
"text/stylus": "UTF-8",
|
31
|
-
"text/tab-separated-values": "UTF-8",
|
32
|
-
"text/troff": "UTF-8",
|
33
|
-
"text/turtle": "UTF-8",
|
34
|
-
"text/uri-list": "UTF-8",
|
35
|
-
"text/vcard": "UTF-8",
|
36
|
-
"text/vnd.curl": "UTF-8",
|
37
|
-
"text/vnd.curl.dcurl": "UTF-8",
|
38
|
-
"text/vnd.curl.mcurl": "UTF-8",
|
39
|
-
"text/vnd.curl.scurl": "UTF-8",
|
40
|
-
"text/vnd.familysearch.gedcom": "UTF-8",
|
41
|
-
"text/vnd.fly": "UTF-8",
|
42
|
-
"text/vnd.fmi.flexstor": "UTF-8",
|
43
|
-
"text/vnd.graphviz": "UTF-8",
|
44
|
-
"text/vnd.in3d.3dml": "UTF-8",
|
45
|
-
"text/vnd.in3d.spot": "UTF-8",
|
46
|
-
"text/vnd.sun.j2me.app-descriptor": "UTF-8",
|
47
|
-
"text/vnd.wap.wml": "UTF-8",
|
48
|
-
"text/vnd.wap.wmlscript": "UTF-8",
|
49
|
-
"text/vtt": "UTF-8",
|
50
|
-
"text/x-asm": "UTF-8",
|
51
|
-
"text/x-c": "UTF-8",
|
52
|
-
"text/x-component": "UTF-8",
|
53
|
-
"text/x-fortran": "UTF-8",
|
54
|
-
"text/x-handlebars-template": "UTF-8",
|
55
|
-
"text/x-java-source": "UTF-8",
|
56
|
-
"text/x-lua": "UTF-8",
|
57
|
-
"text/x-markdown": "UTF-8",
|
58
|
-
"text/x-nfo": "UTF-8",
|
59
|
-
"text/x-opml": "UTF-8",
|
60
|
-
"text/x-pascal": "UTF-8",
|
61
|
-
"text/x-processing": "UTF-8",
|
62
|
-
"text/x-sass": "UTF-8",
|
63
|
-
"text/x-scss": "UTF-8",
|
64
|
-
"text/x-setext": "UTF-8",
|
65
|
-
"text/x-sfv": "UTF-8",
|
66
|
-
"text/x-suse-ymp": "UTF-8",
|
67
|
-
"text/x-uuencode": "UTF-8",
|
68
|
-
"text/x-vcalendar": "UTF-8",
|
69
|
-
"text/x-vcard": "UTF-8",
|
70
|
-
"text/yaml": "UTF-8"
|
71
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Jekyll
|
4
|
-
module Converters
|
5
|
-
class Markdown
|
6
|
-
class RDiscountParser
|
7
|
-
def initialize(config)
|
8
|
-
unless defined?(RDiscount)
|
9
|
-
Jekyll::External.require_with_graceful_fail "rdiscount"
|
10
|
-
end
|
11
|
-
@config = config
|
12
|
-
@rdiscount_extensions = @config["rdiscount"]["extensions"].map(&:to_sym)
|
13
|
-
end
|
14
|
-
|
15
|
-
def convert(content)
|
16
|
-
rd = RDiscount.new(content, *@rdiscount_extensions)
|
17
|
-
html = rd.to_html
|
18
|
-
if @config["rdiscount"]["toc_token"]
|
19
|
-
html = replace_generated_toc(rd, html, @config["rdiscount"]["toc_token"])
|
20
|
-
end
|
21
|
-
html
|
22
|
-
end
|
23
|
-
|
24
|
-
private
|
25
|
-
def replace_generated_toc(rd_instance, html, toc_token)
|
26
|
-
if rd_instance.generate_toc && html.include?(toc_token)
|
27
|
-
utf8_toc = rd_instance.toc_content
|
28
|
-
utf8_toc.force_encoding("utf-8") if utf8_toc.respond_to?(:force_encoding)
|
29
|
-
html.gsub(toc_token, utf8_toc)
|
30
|
-
else
|
31
|
-
html
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|