jekyll-asciidoc 2.0.1 → 2.1.0
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/CHANGELOG.adoc +27 -8
- data/Gemfile +13 -3
- data/LICENSE.adoc +1 -1
- data/README.adoc +409 -103
- data/jekyll-asciidoc.gemspec +6 -7
- data/lib/jekyll-asciidoc/compat.rb +4 -3
- data/lib/jekyll-asciidoc/converter.rb +50 -30
- data/lib/jekyll-asciidoc/filters.rb +21 -1
- data/lib/jekyll-asciidoc/integrator.rb +42 -34
- data/lib/jekyll-asciidoc/mixins.rb +6 -0
- data/lib/jekyll-asciidoc/version.rb +1 -1
- data/spec/fixtures/basic_site/docid.adoc +4 -0
- data/spec/fixtures/basic_site/section-with-id-and-role.adoc +6 -0
- data/spec/fixtures/imagesdir_relative_to_root/_config.yml +1 -1
- data/spec/fixtures/{include_relative_to_doc → include_relative_to_docdir}/_config.yml +0 -0
- data/spec/fixtures/{include_relative_to_doc → include_relative_to_docdir}/_layouts/default.html +0 -0
- data/spec/fixtures/{include_relative_to_doc → include_relative_to_docdir}/about/_people.adoc +0 -0
- data/spec/fixtures/{include_relative_to_doc → include_relative_to_docdir}/about/index.adoc +0 -0
- data/spec/fixtures/include_relative_to_root/source/_config.yml +2 -0
- data/spec/fixtures/include_relative_to_root/source/_layouts/default.html +11 -0
- data/spec/fixtures/include_relative_to_root/source/about/_people.adoc +2 -0
- data/spec/fixtures/include_relative_to_root/source/about/index.adoc +13 -0
- data/spec/fixtures/tocify_filter/_config.yml +2 -0
- data/spec/fixtures/tocify_filter/_layouts/default.html +15 -0
- data/spec/fixtures/tocify_filter/index.adoc +25 -0
- data/spec/fixtures/with_posts/_config.yml +4 -0
- data/spec/fixtures/with_posts/_layouts/post.html +8 -0
- data/spec/fixtures/with_posts/_posts/2016-02-02-post-with-singular-vars.adoc +7 -0
- data/spec/fixtures/with_posts/_posts/2016-06-15-post-with-date.adoc +4 -0
- data/spec/fixtures/with_posts/_posts/2016-07-15-post-with-date-and-tz.adoc +4 -0
- data/spec/fixtures/with_posts/_posts/2016-07-20-post-with-date-in-revision-line.adoc +6 -0
- data/spec/fixtures/xhtml_syntax/images/sunset.jpg +0 -0
- data/spec/jekyll-asciidoc_spec.rb +320 -127
- data/spec/spec_helper.rb +4 -0
- metadata +41 -15
data/spec/spec_helper.rb
CHANGED
@@ -57,4 +57,8 @@ RSpec.configure do |config|
|
|
57
57
|
path = %(_#{collection_name}/#{path}) unless path.start_with? %(_#{collection_name}/)
|
58
58
|
site.collections[collection_name].docs.find {|p| p.relative_path == path }
|
59
59
|
end
|
60
|
+
|
61
|
+
def windows?
|
62
|
+
::RbConfig::CONFIG['host_os'] =~ /win|ming/
|
63
|
+
end
|
60
64
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-asciidoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Allen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-05-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: asciidoctor
|
@@ -67,8 +67,8 @@ dependencies:
|
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 3.5.0
|
70
|
-
description: A Jekyll plugin that converts AsciiDoc source files in your site
|
71
|
-
pages using Asciidoctor.
|
70
|
+
description: A Jekyll plugin that converts the AsciiDoc source files in your site
|
71
|
+
to HTML pages using Asciidoctor.
|
72
72
|
email:
|
73
73
|
- dan.j.allen@gmail.com
|
74
74
|
executables: []
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- spec/fixtures/basic_site/auto-layout.adoc
|
101
101
|
- spec/fixtures/basic_site/bare-header.adoc
|
102
102
|
- spec/fixtures/basic_site/custom-layout.adoc
|
103
|
+
- spec/fixtures/basic_site/docid.adoc
|
103
104
|
- spec/fixtures/basic_site/empty-layout.adoc
|
104
105
|
- spec/fixtures/basic_site/empty-page-attribute.adoc
|
105
106
|
- spec/fixtures/basic_site/liquid-enabled.adoc
|
@@ -107,6 +108,7 @@ files:
|
|
107
108
|
- spec/fixtures/basic_site/no-doctitle.adoc
|
108
109
|
- spec/fixtures/basic_site/no-liquid.adoc
|
109
110
|
- spec/fixtures/basic_site/not-published.adoc
|
111
|
+
- spec/fixtures/basic_site/section-with-id-and-role.adoc
|
110
112
|
- spec/fixtures/basic_site/standalone-a.adoc
|
111
113
|
- spec/fixtures/basic_site/standalone-b.adoc
|
112
114
|
- spec/fixtures/basic_site/subdir/page-in-subdir.adoc
|
@@ -126,10 +128,14 @@ files:
|
|
126
128
|
- spec/fixtures/fallback_to_default_layout/home.adoc
|
127
129
|
- spec/fixtures/hybrid_config/_config.yml
|
128
130
|
- spec/fixtures/imagesdir_relative_to_root/_config.yml
|
129
|
-
- spec/fixtures/
|
130
|
-
- spec/fixtures/
|
131
|
-
- spec/fixtures/
|
132
|
-
- spec/fixtures/
|
131
|
+
- spec/fixtures/include_relative_to_docdir/_config.yml
|
132
|
+
- spec/fixtures/include_relative_to_docdir/_layouts/default.html
|
133
|
+
- spec/fixtures/include_relative_to_docdir/about/_people.adoc
|
134
|
+
- spec/fixtures/include_relative_to_docdir/about/index.adoc
|
135
|
+
- spec/fixtures/include_relative_to_root/source/_config.yml
|
136
|
+
- spec/fixtures/include_relative_to_root/source/_layouts/default.html
|
137
|
+
- spec/fixtures/include_relative_to_root/source/about/_people.adoc
|
138
|
+
- spec/fixtures/include_relative_to_root/source/about/index.adoc
|
133
139
|
- spec/fixtures/include_relative_to_source/_config.yml
|
134
140
|
- spec/fixtures/include_relative_to_source/_layouts/default.html
|
135
141
|
- spec/fixtures/include_relative_to_source/about/_people.adoc
|
@@ -147,6 +153,9 @@ files:
|
|
147
153
|
- spec/fixtures/safe_mode/_config.yml
|
148
154
|
- spec/fixtures/safe_mode/_layouts/home.html
|
149
155
|
- spec/fixtures/safe_mode/home.adoc
|
156
|
+
- spec/fixtures/tocify_filter/_config.yml
|
157
|
+
- spec/fixtures/tocify_filter/_layouts/default.html
|
158
|
+
- spec/fixtures/tocify_filter/index.adoc
|
150
159
|
- spec/fixtures/with_custom_collection/_blueprints/blueprint-a.adoc
|
151
160
|
- spec/fixtures/with_custom_collection/_blueprints/blueprint-b.adoc
|
152
161
|
- spec/fixtures/with_custom_collection/_config.yml
|
@@ -162,9 +171,13 @@ files:
|
|
162
171
|
- spec/fixtures/with_posts/_posts/2016-01-04-custom-layout.adoc
|
163
172
|
- spec/fixtures/with_posts/_posts/2016-01-05-nil-layout.adoc
|
164
173
|
- spec/fixtures/with_posts/_posts/2016-02-01-post-with-categories.adoc
|
174
|
+
- spec/fixtures/with_posts/_posts/2016-02-02-post-with-singular-vars.adoc
|
165
175
|
- spec/fixtures/with_posts/_posts/2016-03-01-post-with-excerpt.adoc
|
166
176
|
- spec/fixtures/with_posts/_posts/2016-04-01-show-me-the-title.adoc
|
167
177
|
- spec/fixtures/with_posts/_posts/2016-05-31-automatic-title.adoc
|
178
|
+
- spec/fixtures/with_posts/_posts/2016-06-15-post-with-date.adoc
|
179
|
+
- spec/fixtures/with_posts/_posts/2016-07-15-post-with-date-and-tz.adoc
|
180
|
+
- spec/fixtures/with_posts/_posts/2016-07-20-post-with-date-in-revision-line.adoc
|
168
181
|
- spec/fixtures/with_posts/index.html
|
169
182
|
- spec/fixtures/xhtml_syntax/_config.yml
|
170
183
|
- spec/fixtures/xhtml_syntax/home.adoc
|
@@ -183,7 +196,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
196
|
requirements:
|
184
197
|
- - ">="
|
185
198
|
- !ruby/object:Gem::Version
|
186
|
-
version:
|
199
|
+
version: 1.9.3
|
187
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
201
|
requirements:
|
189
202
|
- - ">="
|
@@ -191,10 +204,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
204
|
version: '0'
|
192
205
|
requirements: []
|
193
206
|
rubyforge_project:
|
194
|
-
rubygems_version: 2.5
|
207
|
+
rubygems_version: 2.4.5
|
195
208
|
signing_key:
|
196
209
|
specification_version: 4
|
197
|
-
summary: A Jekyll plugin that converts AsciiDoc source files in your site to HTML
|
210
|
+
summary: A Jekyll plugin that converts the AsciiDoc source files in your site to HTML
|
198
211
|
pages using Asciidoctor.
|
199
212
|
test_files:
|
200
213
|
- spec/fixtures/alternate_page_attribute_prefix/_config.yml
|
@@ -208,6 +221,7 @@ test_files:
|
|
208
221
|
- spec/fixtures/basic_site/auto-layout.adoc
|
209
222
|
- spec/fixtures/basic_site/bare-header.adoc
|
210
223
|
- spec/fixtures/basic_site/custom-layout.adoc
|
224
|
+
- spec/fixtures/basic_site/docid.adoc
|
211
225
|
- spec/fixtures/basic_site/empty-layout.adoc
|
212
226
|
- spec/fixtures/basic_site/empty-page-attribute.adoc
|
213
227
|
- spec/fixtures/basic_site/liquid-enabled.adoc
|
@@ -215,6 +229,7 @@ test_files:
|
|
215
229
|
- spec/fixtures/basic_site/no-doctitle.adoc
|
216
230
|
- spec/fixtures/basic_site/no-liquid.adoc
|
217
231
|
- spec/fixtures/basic_site/not-published.adoc
|
232
|
+
- spec/fixtures/basic_site/section-with-id-and-role.adoc
|
218
233
|
- spec/fixtures/basic_site/standalone-a.adoc
|
219
234
|
- spec/fixtures/basic_site/standalone-b.adoc
|
220
235
|
- spec/fixtures/basic_site/subdir/page-in-subdir.adoc
|
@@ -234,10 +249,14 @@ test_files:
|
|
234
249
|
- spec/fixtures/fallback_to_default_layout/home.adoc
|
235
250
|
- spec/fixtures/hybrid_config/_config.yml
|
236
251
|
- spec/fixtures/imagesdir_relative_to_root/_config.yml
|
237
|
-
- spec/fixtures/
|
238
|
-
- spec/fixtures/
|
239
|
-
- spec/fixtures/
|
240
|
-
- spec/fixtures/
|
252
|
+
- spec/fixtures/include_relative_to_docdir/_config.yml
|
253
|
+
- spec/fixtures/include_relative_to_docdir/_layouts/default.html
|
254
|
+
- spec/fixtures/include_relative_to_docdir/about/_people.adoc
|
255
|
+
- spec/fixtures/include_relative_to_docdir/about/index.adoc
|
256
|
+
- spec/fixtures/include_relative_to_root/source/_config.yml
|
257
|
+
- spec/fixtures/include_relative_to_root/source/_layouts/default.html
|
258
|
+
- spec/fixtures/include_relative_to_root/source/about/_people.adoc
|
259
|
+
- spec/fixtures/include_relative_to_root/source/about/index.adoc
|
241
260
|
- spec/fixtures/include_relative_to_source/_config.yml
|
242
261
|
- spec/fixtures/include_relative_to_source/_layouts/default.html
|
243
262
|
- spec/fixtures/include_relative_to_source/about/_people.adoc
|
@@ -255,6 +274,9 @@ test_files:
|
|
255
274
|
- spec/fixtures/safe_mode/_config.yml
|
256
275
|
- spec/fixtures/safe_mode/_layouts/home.html
|
257
276
|
- spec/fixtures/safe_mode/home.adoc
|
277
|
+
- spec/fixtures/tocify_filter/_config.yml
|
278
|
+
- spec/fixtures/tocify_filter/_layouts/default.html
|
279
|
+
- spec/fixtures/tocify_filter/index.adoc
|
258
280
|
- spec/fixtures/with_custom_collection/_blueprints/blueprint-a.adoc
|
259
281
|
- spec/fixtures/with_custom_collection/_blueprints/blueprint-b.adoc
|
260
282
|
- spec/fixtures/with_custom_collection/_config.yml
|
@@ -270,9 +292,13 @@ test_files:
|
|
270
292
|
- spec/fixtures/with_posts/_posts/2016-01-04-custom-layout.adoc
|
271
293
|
- spec/fixtures/with_posts/_posts/2016-01-05-nil-layout.adoc
|
272
294
|
- spec/fixtures/with_posts/_posts/2016-02-01-post-with-categories.adoc
|
295
|
+
- spec/fixtures/with_posts/_posts/2016-02-02-post-with-singular-vars.adoc
|
273
296
|
- spec/fixtures/with_posts/_posts/2016-03-01-post-with-excerpt.adoc
|
274
297
|
- spec/fixtures/with_posts/_posts/2016-04-01-show-me-the-title.adoc
|
275
298
|
- spec/fixtures/with_posts/_posts/2016-05-31-automatic-title.adoc
|
299
|
+
- spec/fixtures/with_posts/_posts/2016-06-15-post-with-date.adoc
|
300
|
+
- spec/fixtures/with_posts/_posts/2016-07-15-post-with-date-and-tz.adoc
|
301
|
+
- spec/fixtures/with_posts/_posts/2016-07-20-post-with-date-in-revision-line.adoc
|
276
302
|
- spec/fixtures/with_posts/index.html
|
277
303
|
- spec/fixtures/xhtml_syntax/_config.yml
|
278
304
|
- spec/fixtures/xhtml_syntax/home.adoc
|