asciidoctor-epub3 1.5.0.alpha.15 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +48 -0
- data/Gemfile +3 -4
- data/LICENSE +2 -2
- data/NOTICE.adoc +1 -1
- data/README.adoc +50 -763
- data/asciidoctor-epub3.gemspec +7 -5
- data/data/fonts/awesome/fa-solid-900.ttf +0 -0
- data/data/fonts/awesome/icons.yml +873 -26
- data/data/styles/color-palette.css +7 -10
- data/data/styles/epub3-css3-only.css +0 -50
- data/data/styles/epub3.css +72 -68
- data/lib/asciidoctor-epub3/converter.rb +374 -174
- data/lib/asciidoctor-epub3/ext/asciidoctor.rb +1 -0
- data/lib/asciidoctor-epub3/ext/asciidoctor/document.rb +19 -0
- data/lib/asciidoctor-epub3/version.rb +1 -1
- metadata +44 -15
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class Asciidoctor::Document
|
4
|
+
class << self
|
5
|
+
def supports_syntax_highlighter?
|
6
|
+
if @supports_syntax_highlighter.nil?
|
7
|
+
# Asciidoctor only got pluggable syntax highlighters since 2.0:
|
8
|
+
# https://github.com/asciidoctor/asciidoctor/commit/23ddbaed6818025cbe74365fec7e8101f34eadca
|
9
|
+
@supports_syntax_highlighter = method_defined? :syntax_highlighter
|
10
|
+
end
|
11
|
+
|
12
|
+
@supports_syntax_highlighter
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def syntax_highlighter
|
17
|
+
nil
|
18
|
+
end unless supports_syntax_highlighter?
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-epub3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.0
|
4
|
+
version: 1.5.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: 2021-04-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: asciidoctor-diagram
|
@@ -31,6 +31,20 @@ dependencies:
|
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 3.0.0
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: asciimath
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
type: :development
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
34
48
|
- !ruby/object:Gem::Dependency
|
35
49
|
name: coderay
|
36
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -51,14 +65,14 @@ dependencies:
|
|
51
65
|
requirements:
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
68
|
+
version: 2.2.0
|
55
69
|
type: :development
|
56
70
|
prerelease: false
|
57
71
|
version_requirements: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
75
|
+
version: 2.2.0
|
62
76
|
- !ruby/object:Gem::Dependency
|
63
77
|
name: rake
|
64
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,42 +107,42 @@ dependencies:
|
|
93
107
|
requirements:
|
94
108
|
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: 3.
|
110
|
+
version: 3.10.0
|
97
111
|
type: :development
|
98
112
|
prerelease: false
|
99
113
|
version_requirements: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: 3.
|
117
|
+
version: 3.10.0
|
104
118
|
- !ruby/object:Gem::Dependency
|
105
119
|
name: rubocop
|
106
120
|
requirement: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
124
|
+
version: 0.81.0
|
111
125
|
type: :development
|
112
126
|
prerelease: false
|
113
127
|
version_requirements: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
131
|
+
version: 0.81.0
|
118
132
|
- !ruby/object:Gem::Dependency
|
119
133
|
name: rubocop-rspec
|
120
134
|
requirement: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
136
|
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
138
|
+
version: 1.41.0
|
125
139
|
type: :development
|
126
140
|
prerelease: false
|
127
141
|
version_requirements: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - "~>"
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.
|
145
|
+
version: 1.41.0
|
132
146
|
- !ruby/object:Gem::Dependency
|
133
147
|
name: asciidoctor
|
134
148
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,10 +177,24 @@ dependencies:
|
|
163
177
|
- - "~>"
|
164
178
|
- !ruby/object:Gem::Version
|
165
179
|
version: 1.0.0
|
180
|
+
- !ruby/object:Gem::Dependency
|
181
|
+
name: mime-types
|
182
|
+
requirement: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - "~>"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '3.0'
|
187
|
+
type: :runtime
|
188
|
+
prerelease: false
|
189
|
+
version_requirements: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '3.0'
|
166
194
|
description: 'An extension for Asciidoctor that converts AsciiDoc documents to EPUB3
|
167
195
|
and KF8/MOBI (Kindle) e-book archives.
|
168
196
|
|
169
|
-
'
|
197
|
+
'
|
170
198
|
email: dan@opendevise.com
|
171
199
|
executables:
|
172
200
|
- asciidoctor-epub3
|
@@ -234,6 +262,7 @@ files:
|
|
234
262
|
- lib/asciidoctor-epub3/converter.rb
|
235
263
|
- lib/asciidoctor-epub3/ext.rb
|
236
264
|
- lib/asciidoctor-epub3/ext/asciidoctor.rb
|
265
|
+
- lib/asciidoctor-epub3/ext/asciidoctor/document.rb
|
237
266
|
- lib/asciidoctor-epub3/ext/asciidoctor/logging_shim.rb
|
238
267
|
- lib/asciidoctor-epub3/ext/core.rb
|
239
268
|
- lib/asciidoctor-epub3/ext/core/string.rb
|
@@ -251,14 +280,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
251
280
|
requirements:
|
252
281
|
- - ">="
|
253
282
|
- !ruby/object:Gem::Version
|
254
|
-
version: 2.
|
283
|
+
version: 2.4.0
|
255
284
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
256
285
|
requirements:
|
257
|
-
- - "
|
286
|
+
- - ">="
|
258
287
|
- !ruby/object:Gem::Version
|
259
|
-
version:
|
288
|
+
version: '0'
|
260
289
|
requirements: []
|
261
|
-
rubygems_version: 3.
|
290
|
+
rubygems_version: 3.2.15
|
262
291
|
signing_key:
|
263
292
|
specification_version: 4
|
264
293
|
summary: Converts AsciiDoc documents to EPUB3 and KF8/MOBI (Kindle) e-book formats
|