asciidoctor-revealjs 3.0.0 → 3.1.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 +33 -2
- data/HACKING.adoc +18 -0
- data/LICENSE.adoc +1 -1
- data/README.adoc +64 -10
- data/asciidoctor-revealjs.gemspec +1 -1
- data/bin/asciidoctor-revealjs +7 -0
- data/examples/customcss.adoc +1 -1
- data/examples/font-awesome.adoc +5 -1
- data/lib/asciidoctor-revealjs/converter.rb +5 -4
- data/lib/asciidoctor-revealjs/version.rb +1 -1
- data/templates/document.html.slim +2 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6ee61188a486fd610ff46c9364a470569462c8ee9b2efe321a9f036d15b3a4e
|
4
|
+
data.tar.gz: adccc770637abffd5d78be47aa7f11f02fa7bbb2ac4facfa0222128529b70e14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ac43abbce7bb8229f6951653d85e85adb9187758e3b58b3d29e5f410a2f3b22ef4898de07e7c1c6033a1f4dac0e534716efda3e82610aa20ea4b083124ee631
|
7
|
+
data.tar.gz: ff848d465227488c034f3b1347977685dffd785427faac7abfcaf33aee1249092449d2e28e185914ac8837f9ca9a97cc30b98bb92bc61b422d601b349d22f66c
|
data/CHANGELOG.adoc
CHANGED
@@ -6,10 +6,41 @@
|
|
6
6
|
This document provides a high-level view of the changes introduced in {project-name} by release.
|
7
7
|
For a detailed view of what has changed, refer to the {uri-repo}/commits/master[commit history] on GitHub.
|
8
8
|
|
9
|
+
== 3.1.0 (2020-01-18)
|
10
|
+
|
11
|
+
Fixed a regression with Font-Awesome brand icons, added a JavaScript CLI and standalone executables for Windows, Linux and macOS.
|
12
|
+
|
13
|
+
Enhancements::
|
14
|
+
* We now provide native standalone executables for Windows, Linux and macOS using a Node to binary packager ({uri-issue}259[#259], {uri-issue}308[#308])
|
15
|
+
* JavaScript stack now provides a CLI usable with `npx asciidoctor-revealjs` ({uri-issue}308[#308])
|
16
|
+
* Updated to Font-Awesome 5.12.0 ({uri-issue}305[#305])
|
17
|
+
* Ruby command line interface now shows {project-name} version in addition to Asciidoctor version ({uri-issue}313[#313])
|
18
|
+
* Updated dependencies: rake
|
19
|
+
* Better tests ({uri-issue}310[#310], {uri-issue}311[#311])
|
20
|
+
|
21
|
+
Bug Fixes::
|
22
|
+
* Added compatibility shim to Font Awesome 5 to fix brand icons rendering and more ({uri-issue}304[#304], {uri-issue}305[#305])
|
23
|
+
|
24
|
+
=== Release meta
|
25
|
+
|
26
|
+
* Released on: 2020-01-18
|
27
|
+
* Released by: Olivier Bilodeau
|
28
|
+
* Release beer: Lupulus, Microbrasserie Charlevoix
|
29
|
+
|
30
|
+
{uri-repo}/releases/tag/v3.1.0[git tag] |
|
31
|
+
{uri-repo}/compare/v3.0.0...v3.1.0[full diff] |
|
32
|
+
{uri-repo}/milestone/9[milestone]
|
33
|
+
|
34
|
+
=== Credits
|
35
|
+
|
36
|
+
Thanks to the following people who contributed to this release:
|
37
|
+
|
38
|
+
Guillaume Grossetie and Olivier Bilodeau
|
39
|
+
|
40
|
+
|
9
41
|
== 3.0.0 (2020-01-07)
|
10
42
|
|
11
|
-
An API breaking release for Asciidoctor.js users that brings a bright future
|
12
|
-
of long term stability.
|
43
|
+
An API breaking release for Asciidoctor.js users that brings a bright future of long term stability.
|
13
44
|
New Reveal.js features supported: background opacity, background positions, and PDF export.
|
14
45
|
AsciiDoc table options now supported.
|
15
46
|
A big FontAwesome update.
|
data/HACKING.adoc
CHANGED
@@ -274,6 +274,15 @@ See https://github.com/asciidoctor/asciidoctor-reveal.js/issues/187#issuecomment
|
|
274
274
|
|
275
275
|
Asciidoctor.js versioning policy is https://asciidoctor-docs.netlify.com/asciidoctor.js/project/version-and-lifecycle-policies/[available here].
|
276
276
|
|
277
|
+
=== Debugging
|
278
|
+
|
279
|
+
To debug the JavaScript application, just add `--node-arg=--inspect-brk` to the npx command to run the application.
|
280
|
+
For example:
|
281
|
+
|
282
|
+
npx --node-arg=--inspect-brk asciidoctor-revealjs -v presentation.adoc
|
283
|
+
|
284
|
+
Then open the Chrome Dev Tools and click on the Node logo in the top left corner.
|
285
|
+
|
277
286
|
|
278
287
|
== RubyGem package
|
279
288
|
|
@@ -334,6 +343,9 @@ Then run:
|
|
334
343
|
:%s/{uri-issue}\(\d\+\)\[#\d\+]/#\1/gc
|
335
344
|
:%s/{project-name}/asciidoctor-reveal.js/gc
|
336
345
|
:%s/\(.*\)::/### \1/gc
|
346
|
+
:%s/{uri-repo}/https:\/\/github.com\/asciidoctor\/asciidoctor-reveal.js/gc
|
347
|
+
|
348
|
+
** Save as draft
|
337
349
|
|
338
350
|
. Pushing the gem on rubygems.org:
|
339
351
|
+
|
@@ -352,7 +364,13 @@ Then run:
|
|
352
364
|
$ npm publish
|
353
365
|
|
354
366
|
. Check that the new version is available on https://www.npmjs.com/package/@asciidoctor/reveal.js[npmjs.com]
|
367
|
+
. Make binaries release
|
368
|
+
** Run `npm run package`. Binaries built will be in `dist/`. Upload them to the GitHub release page.
|
355
369
|
. Update version in `lib/asciidoctor-revealjs/version.rb` and `package.json` (+1 bugfix and append '-dev') and commit
|
370
|
+
** Remove the "Slim compiled to Ruby" converter to the git tree (to avoid noise to the repo and `git status` noise)
|
371
|
+
+
|
372
|
+
git rm --cached lib/asciidoctor-revealjs/converter.rb
|
373
|
+
|
356
374
|
** commit msg: Begin development on next release
|
357
375
|
. Submit a PR upstream to sync the documentation on asciidoctor.org
|
358
376
|
** Modify this page: https://github.com/asciidoctor/asciidoctor.org/edit/master/docs/asciidoctor-revealjs.adoc
|
data/LICENSE.adoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.The MIT License
|
2
2
|
....
|
3
|
-
Copyright (C) 2012-
|
3
|
+
Copyright (C) 2012-2020 Olivier Bilodeau, Charles Moulliard, Dan Allen and the Asciidoctor Project
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.adoc
CHANGED
@@ -34,12 +34,11 @@ endif::[]
|
|
34
34
|
|
35
35
|
TIP: Want to see some example presentations, see <<Showcase Presentations>>
|
36
36
|
|
37
|
-
There are
|
37
|
+
There are three main technology stacks that can transform AsciiDoc into HTML5 / reveal.js:
|
38
38
|
|
39
39
|
* Asciidoctor / Ruby / Bundler (See <<Ruby Setup>>)
|
40
40
|
* Asciidoctor.js / JavaScript (Node.js) / npm (See <<Node / JavaScript Setup>>)
|
41
|
-
|
42
|
-
Right now the Asciidoctor / Ruby stack is the better tested one but with the changes in v1.1.0 they have feature parity.
|
41
|
+
* Standalone Executable (See <<Standalone Executable>>)
|
43
42
|
|
44
43
|
ifeval::['{branch}' == 'master']
|
45
44
|
NOTE: You're viewing the documentation for an upcoming release.
|
@@ -148,14 +147,14 @@ You can now install the dependencies:
|
|
148
147
|
|
149
148
|
=== Convert AsciiDoc into slides
|
150
149
|
|
151
|
-
Once the dependencies are installed, verify that the `asciidoctor` command is available.
|
150
|
+
Once the dependencies are installed, verify that the `asciidoctor-revealjs` command is available.
|
152
151
|
On Linux and macOS, open a terminal and type:
|
153
152
|
|
154
|
-
$
|
153
|
+
$ npx asciidoctor-revealjs --version
|
155
154
|
|
156
155
|
On Windows, open PowerShell and type:
|
157
156
|
|
158
|
-
$ .\node_modules\.bin\asciidoctor.cmd --version
|
157
|
+
$ .\node_modules\.bin\asciidoctor-revealjs.cmd --version
|
159
158
|
|
160
159
|
The command should report the Asciidoctor CLI version in the terminal:
|
161
160
|
|
@@ -183,12 +182,12 @@ If you don't have an existing presentation, you can create a sample presentation
|
|
183
182
|
|
184
183
|
To convert the sample presentation into slides, open a terminal and type:
|
185
184
|
|
186
|
-
$
|
185
|
+
$ npx asciidoctor-revealjs presentation.adoc
|
187
186
|
|
188
187
|
On windows, open PowerShell and type:
|
189
188
|
|
190
|
-
$ .\node_modules\.bin\asciidoctor.cmd
|
191
|
-
|
189
|
+
$ .\node_modules\.bin\asciidoctor-revealjs.cmd presentation.adoc
|
190
|
+
|
192
191
|
The above command will generate a file named [.path]_presentation.html_.
|
193
192
|
You can open this file in a browser.
|
194
193
|
|
@@ -216,6 +215,61 @@ To execute the script, open a terminal and type:
|
|
216
215
|
|
217
216
|
You can open the `presentation.html` file in your browser and enjoy!
|
218
217
|
|
218
|
+
|
219
|
+
== Standalone Executable
|
220
|
+
|
221
|
+
Pre-built binary packages can be downloaded from our {uri-project-repo}/releases[GitHub release page].
|
222
|
+
We provide them for Windows 64-bit, Linux 64-bit and macOS 64-bit.
|
223
|
+
Open an issue if your platform isn't supported.
|
224
|
+
The executables are built using the <<Node / JavaScript Setup,Node / JavaScript>> toolchain.
|
225
|
+
|
226
|
+
=== Install
|
227
|
+
|
228
|
+
* {uri-project-repo}/releases[Download the executable] for your platform and make it executable with `chmod` or using the files properties' user interface.
|
229
|
+
* Copy or clone the reveal.js presentation framework in the directory where you will build your slidedeck.
|
230
|
+
Here we do a shallow clone of the repo:
|
231
|
+
|
232
|
+
$ git clone -b 3.7.0 --depth 1 https://github.com/hakimel/reveal.js.git
|
233
|
+
|
234
|
+
=== Convert AsciiDoc into slides
|
235
|
+
|
236
|
+
Open a terminal where the executable is and type:
|
237
|
+
|
238
|
+
$ ./asciidoctor-revealjs --version
|
239
|
+
|
240
|
+
The command should report the Asciidoctor reveal.js and Asciidoctor CLI version in the terminal:
|
241
|
+
|
242
|
+
[source,console]
|
243
|
+
----
|
244
|
+
Asciidoctor reveal.js 3.0.1 using Asciidoctor.js 2.0.3 (Asciidoctor 2.0.9) [https://asciidoctor.org]
|
245
|
+
Runtime Environment (node v12.13.1 on linux)
|
246
|
+
CLI version 3.1.0
|
247
|
+
----
|
248
|
+
|
249
|
+
If you don't have an existing presentation, you can create a sample presentation named [.path]_presentation.adoc_:
|
250
|
+
|
251
|
+
.presentation.adoc
|
252
|
+
[source,asciidoc]
|
253
|
+
----
|
254
|
+
= Title Slide
|
255
|
+
:revealjsdir: reveal.js
|
256
|
+
|
257
|
+
== Slide One
|
258
|
+
|
259
|
+
* Foo
|
260
|
+
* Bar
|
261
|
+
* World
|
262
|
+
|
263
|
+
----
|
264
|
+
|
265
|
+
To convert the sample presentation into slides, open a terminal and type:
|
266
|
+
|
267
|
+
$ ./asciidoctor-revealjs presentation.adoc
|
268
|
+
|
269
|
+
The above command will generate a file named [.path]_presentation.html_.
|
270
|
+
You can open this file in a browser.
|
271
|
+
|
272
|
+
|
219
273
|
== Syntax Examples
|
220
274
|
|
221
275
|
Let's see some examples of `revealjs` backend features.
|
@@ -1055,7 +1109,7 @@ Developer-focused documentation is link:HACKING.adoc[over here].
|
|
1055
1109
|
|
1056
1110
|
== Copyright and Licensing
|
1057
1111
|
|
1058
|
-
Copyright (C) 2012-
|
1112
|
+
Copyright (C) 2012-2020 {authors} and the Asciidoctor Project.
|
1059
1113
|
Free use of this software is granted under the terms of the MIT License.
|
1060
1114
|
|
1061
1115
|
ifdef::env-github,env-browser[See the <<LICENSE#,LICENSE>> file for details.]
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
s.add_runtime_dependency 'thread_safe', '~> 0.3.5'
|
35
35
|
s.add_runtime_dependency 'concurrent-ruby', '~> 1.0'
|
36
36
|
|
37
|
-
s.add_development_dependency 'rake', '~>
|
37
|
+
s.add_development_dependency 'rake', '~> 13.0.0'
|
38
38
|
s.add_development_dependency 'asciidoctor-doctest', '= 2.0.0.beta.5'
|
39
39
|
s.add_development_dependency 'pry', '~> 0.10.4'
|
40
40
|
if RUBY_ENGINE != 'jruby'
|
data/bin/asciidoctor-revealjs
CHANGED
@@ -9,6 +9,13 @@ require 'asciidoctor/cli'
|
|
9
9
|
|
10
10
|
options = Asciidoctor::Cli::Options.new backend: 'revealjs'
|
11
11
|
|
12
|
+
# FIXME (from asciidoctor-pdf) provide an API in Asciidoctor for sub-components to print version information
|
13
|
+
unless ARGV != ['-v'] && (ARGV & ['-V', '--version']).empty?
|
14
|
+
$stdout.write %(Asciidoctor reveal.js #{Asciidoctor::Revealjs::VERSION} using )
|
15
|
+
options.print_version
|
16
|
+
exit 0
|
17
|
+
end
|
18
|
+
|
12
19
|
# FIXME (from bespoke) This is a really bizarre API. Please make me simpler.
|
13
20
|
if Integer === (result = options.parse! ARGV)
|
14
21
|
exit result
|
data/examples/customcss.adoc
CHANGED
data/examples/font-awesome.adoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// .font-awesome
|
2
2
|
// Testing font-awesome icons
|
3
|
-
// :include:
|
3
|
+
// :include: //head//link[@rel="stylesheet"] | //div[@class="slides"]
|
4
4
|
// :header_footer:
|
5
5
|
= Font Awesome Tests
|
6
6
|
:icons: font
|
@@ -22,3 +22,7 @@ icon:heart[size=5x]
|
|
22
22
|
== !
|
23
23
|
|
24
24
|
icon:stackpath[size=5x]
|
25
|
+
|
26
|
+
== !
|
27
|
+
|
28
|
+
icon:twitter[size=5x]
|
@@ -654,9 +654,10 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
|
|
654
654
|
; if attr? :icons, 'font';
|
655
655
|
;
|
656
656
|
; if attr? 'iconfont-remote';
|
657
|
-
; _buf << ("<link rel=\"stylesheet\"".freeze); _slim_codeattributes5 = (attr 'iconfont-cdn', %(#{cdn_base}/font-awesome/5.
|
657
|
+
; _buf << ("<link rel=\"stylesheet\"".freeze); _slim_codeattributes5 = (attr 'iconfont-cdn', %(#{cdn_base}/font-awesome/5.12.0-1/css/all.min.css)); if _slim_codeattributes5; if _slim_codeattributes5 == true; _buf << (" href".freeze); else; _buf << (" href=\"".freeze); _buf << ((_slim_codeattributes5).to_s); _buf << ("\"".freeze); end; end; _buf << ("><link rel=\"stylesheet\"".freeze);
|
658
|
+
; _slim_codeattributes6 = (attr 'iconfont-cdn', %(#{cdn_base}/font-awesome/5.12.0-1/css/v4-shims.min.css)); if _slim_codeattributes6; if _slim_codeattributes6 == true; _buf << (" href".freeze); else; _buf << (" href=\"".freeze); _buf << ((_slim_codeattributes6).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze);
|
658
659
|
; else;
|
659
|
-
; _buf << ("<link rel=\"stylesheet\"".freeze);
|
660
|
+
; _buf << ("<link rel=\"stylesheet\"".freeze); _slim_codeattributes7 = (normalize_web_path %(#{attr 'iconfont-name', 'font-awesome'}.css), (attr 'stylesdir', ''), false); if _slim_codeattributes7; if _slim_codeattributes7 == true; _buf << (" href".freeze); else; _buf << (" href=\"".freeze); _buf << ((_slim_codeattributes7).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze);
|
660
661
|
; end; end; if attr? :stem;
|
661
662
|
; eqnums_val = (attr 'eqnums', 'none');
|
662
663
|
; eqnums_val = 'AMS' if eqnums_val == '';
|
@@ -691,7 +692,7 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
|
|
691
692
|
; unless (docinfo_content = docinfo :header, '.html').empty?;
|
692
693
|
; _buf << ((docinfo_content).to_s);
|
693
694
|
; end; if attr? :customcss;
|
694
|
-
; _buf << ("<link rel=\"stylesheet\"".freeze);
|
695
|
+
; _buf << ("<link rel=\"stylesheet\"".freeze); _slim_codeattributes8 = ((customcss = attr :customcss).empty? ? 'asciidoctor-revealjs.css' : customcss); if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" href".freeze); else; _buf << (" href=\"".freeze); _buf << ((_slim_codeattributes8).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze);
|
695
696
|
; end; _buf << ("</head><body><div class=\"reveal\"><div class=\"slides\">".freeze);
|
696
697
|
;
|
697
698
|
;
|
@@ -714,7 +715,7 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
|
|
714
715
|
;
|
715
716
|
;
|
716
717
|
;
|
717
|
-
; _buf << ("<section".freeze); _temple_html_attributeremover1 = ''; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "title"; _temple_html_attributemerger1[1] = '';
|
718
|
+
; _buf << ("<section".freeze); _temple_html_attributeremover1 = ''; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "title"; _temple_html_attributemerger1[1] = ''; _slim_codeattributes9 = role; if Array === _slim_codeattributes9; _slim_codeattributes9 = _slim_codeattributes9.flatten; _slim_codeattributes9.map!(&:to_s); _slim_codeattributes9.reject!(&:empty?); _temple_html_attributemerger1[1] << ((_slim_codeattributes9.join(" ")).to_s); else; _temple_html_attributemerger1[1] << ((_slim_codeattributes9).to_s); end; _temple_html_attributemerger1[1]; _temple_html_attributeremover1 << ((_temple_html_attributemerger1.reject(&:empty?).join(" ")).to_s); _temple_html_attributeremover1; if !_temple_html_attributeremover1.empty?; _buf << (" class=\"".freeze); _buf << ((_temple_html_attributeremover1).to_s); _buf << ("\"".freeze); end; _buf << (" data-state=\"title\"".freeze); _slim_codeattributes10 = (attr 'title-slide-transition'); if _slim_codeattributes10; if _slim_codeattributes10 == true; _buf << (" data-transition".freeze); else; _buf << (" data-transition=\"".freeze); _buf << ((_slim_codeattributes10).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes11 = (attr 'title-slide-transition-speed'); if _slim_codeattributes11; if _slim_codeattributes11 == true; _buf << (" data-transition-speed".freeze); else; _buf << (" data-transition-speed=\"".freeze); _buf << ((_slim_codeattributes11).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes12 = (attr 'title-slide-background'); if _slim_codeattributes12; if _slim_codeattributes12 == true; _buf << (" data-background".freeze); else; _buf << (" data-background=\"".freeze); _buf << ((_slim_codeattributes12).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes13 = (attr 'title-slide-background-size'); if _slim_codeattributes13; if _slim_codeattributes13 == true; _buf << (" data-background-size".freeze); else; _buf << (" data-background-size=\"".freeze); _buf << ((_slim_codeattributes13).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes14 = bg_image; if _slim_codeattributes14; if _slim_codeattributes14 == true; _buf << (" data-background-image".freeze); else; _buf << (" data-background-image=\"".freeze); _buf << ((_slim_codeattributes14).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes15 = bg_video; if _slim_codeattributes15; if _slim_codeattributes15 == true; _buf << (" data-background-video".freeze); else; _buf << (" data-background-video=\"".freeze); _buf << ((_slim_codeattributes15).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes16 = (attr 'title-slide-background-video-loop'); if _slim_codeattributes16; if _slim_codeattributes16 == true; _buf << (" data-background-video-loop".freeze); else; _buf << (" data-background-video-loop=\"".freeze); _buf << ((_slim_codeattributes16).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes17 = (attr 'title-slide-background-video-muted'); if _slim_codeattributes17; if _slim_codeattributes17 == true; _buf << (" data-background-video-muted".freeze); else; _buf << (" data-background-video-muted=\"".freeze); _buf << ((_slim_codeattributes17).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes18 = (attr "background-opacity"); if _slim_codeattributes18; if _slim_codeattributes18 == true; _buf << (" data-background-opacity".freeze); else; _buf << (" data-background-opacity=\"".freeze); _buf << ((_slim_codeattributes18).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes19 = (attr 'title-slide-background-iframe'); if _slim_codeattributes19; if _slim_codeattributes19 == true; _buf << (" data-background-iframe".freeze); else; _buf << (" data-background-iframe=\"".freeze); _buf << ((_slim_codeattributes19).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes20 = (attr 'title-slide-background-color'); if _slim_codeattributes20; if _slim_codeattributes20 == true; _buf << (" data-background-color".freeze); else; _buf << (" data-background-color=\"".freeze); _buf << ((_slim_codeattributes20).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes21 = (attr 'title-slide-background-repeat'); if _slim_codeattributes21; if _slim_codeattributes21 == true; _buf << (" data-background-repeat".freeze); else; _buf << (" data-background-repeat=\"".freeze); _buf << ((_slim_codeattributes21).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes22 = (attr 'title-slide-background-position'); if _slim_codeattributes22; if _slim_codeattributes22 == true; _buf << (" data-background-position".freeze); else; _buf << (" data-background-position=\"".freeze); _buf << ((_slim_codeattributes22).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes23 = (attr 'title-slide-background-transition'); if _slim_codeattributes23; if _slim_codeattributes23 == true; _buf << (" data-background-transition".freeze); else; _buf << (" data-background-transition=\"".freeze); _buf << ((_slim_codeattributes23).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze);
|
718
719
|
; if (_title_obj = doctitle partition: true, use_fallback: true).subtitle?;
|
719
720
|
; _buf << ("<h1>".freeze); _buf << ((slice_text _title_obj.title, (_slice = header.option? :slice)).to_s);
|
720
721
|
; _buf << ("</h1><h2>".freeze); _buf << ((slice_text _title_obj.subtitle, _slice).to_s);
|
@@ -27,7 +27,8 @@ html lang=(attr :lang, 'en' unless attr? :nolang)
|
|
27
27
|
- if attr? :icons, 'font'
|
28
28
|
/ iconfont-remote is implicitly set by Asciidoctor core. See https://github.com/asciidoctor/asciidoctor.org/issues/361
|
29
29
|
- if attr? 'iconfont-remote'
|
30
|
-
link rel='stylesheet' href=(attr 'iconfont-cdn', %(#{cdn_base}/font-awesome/5.
|
30
|
+
link rel='stylesheet' href=(attr 'iconfont-cdn', %(#{cdn_base}/font-awesome/5.12.0-1/css/all.min.css))
|
31
|
+
link rel='stylesheet' href=(attr 'iconfont-cdn', %(#{cdn_base}/font-awesome/5.12.0-1/css/v4-shims.min.css))
|
31
32
|
- else
|
32
33
|
link rel='stylesheet' href=(normalize_web_path %(#{attr 'iconfont-name', 'font-awesome'}.css), (attr 'stylesdir', ''), false)
|
33
34
|
- if attr? :stem
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-revealjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier Bilodeau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 13.0.0
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 13.0.0
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: asciidoctor-doctest
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -376,7 +376,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
376
376
|
- !ruby/object:Gem::Version
|
377
377
|
version: '0'
|
378
378
|
requirements: []
|
379
|
-
rubygems_version: 3.
|
379
|
+
rubygems_version: 3.1.2
|
380
380
|
signing_key:
|
381
381
|
specification_version: 4
|
382
382
|
summary: A reveal.js converter for Asciidoctor. Write your slides in AsciiDoc!
|