asciidoctor-epub3 1.5.0.alpha.16 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +40 -0
- data/Gemfile +3 -4
- data/LICENSE +2 -2
- data/NOTICE.adoc +1 -1
- data/README.adoc +49 -771
- data/asciidoctor-epub3.gemspec +5 -4
- 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 +67 -68
- data/lib/asciidoctor-epub3/converter.rb +238 -148
- 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 +28 -13
@@ -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.
|
4
|
+
version: 1.5.1
|
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,14 +107,14 @@ 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
|
@@ -121,14 +135,14 @@ dependencies:
|
|
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
|
@@ -180,7 +194,7 @@ dependencies:
|
|
180
194
|
description: 'An extension for Asciidoctor that converts AsciiDoc documents to EPUB3
|
181
195
|
and KF8/MOBI (Kindle) e-book archives.
|
182
196
|
|
183
|
-
'
|
197
|
+
'
|
184
198
|
email: dan@opendevise.com
|
185
199
|
executables:
|
186
200
|
- asciidoctor-epub3
|
@@ -248,6 +262,7 @@ files:
|
|
248
262
|
- lib/asciidoctor-epub3/converter.rb
|
249
263
|
- lib/asciidoctor-epub3/ext.rb
|
250
264
|
- lib/asciidoctor-epub3/ext/asciidoctor.rb
|
265
|
+
- lib/asciidoctor-epub3/ext/asciidoctor/document.rb
|
251
266
|
- lib/asciidoctor-epub3/ext/asciidoctor/logging_shim.rb
|
252
267
|
- lib/asciidoctor-epub3/ext/core.rb
|
253
268
|
- lib/asciidoctor-epub3/ext/core/string.rb
|
@@ -265,14 +280,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
265
280
|
requirements:
|
266
281
|
- - ">="
|
267
282
|
- !ruby/object:Gem::Version
|
268
|
-
version: 2.
|
283
|
+
version: 2.4.0
|
269
284
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
270
285
|
requirements:
|
271
|
-
- - "
|
286
|
+
- - ">="
|
272
287
|
- !ruby/object:Gem::Version
|
273
|
-
version:
|
288
|
+
version: '0'
|
274
289
|
requirements: []
|
275
|
-
rubygems_version: 3.
|
290
|
+
rubygems_version: 3.2.15
|
276
291
|
signing_key:
|
277
292
|
specification_version: 4
|
278
293
|
summary: Converts AsciiDoc documents to EPUB3 and KF8/MOBI (Kindle) e-book formats
|