asciidoctor-revealjs 2.0.0 → 2.0.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 +35 -3
- data/HACKING.adoc +2 -0
- data/README.adoc +20 -2
- data/asciidoctor-revealjs.gemspec +1 -1
- data/examples/history-regression-tests.adoc +5 -0
- data/lib/asciidoctor-revealjs/converter.rb +21 -23
- data/lib/asciidoctor-revealjs/version.rb +1 -1
- data/templates/document.html.slim +20 -20
- data/templates/table.html.slim +1 -3
- 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: 5c859d03df98f52ebbcc3e1f379a41c6103e6140a94b253732a8cf5689e098e4
|
4
|
+
data.tar.gz: 2558438a7589d665bd25aae3f49d9b99ca1241a2ff390508380a3a4abe38787a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca517e99129e78868555c180e9464e4d4953a434499cde9c46a018ab17dfbba440bc619282e7e9e4e98270f61b4b93897910e8ca2fa060ab5ee2cdd380d2cef5
|
7
|
+
data.tar.gz: c3f53bfe969e5774ab0947d8db41477d6af5e22217fce08d760bf5c0d70b366663c31cc1543cefd584cd73fbb5e7991f995d7b0237cfd23d835dfb68e502493c
|
data/CHANGELOG.adoc
CHANGED
@@ -6,6 +6,38 @@
|
|
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
|
+
|
10
|
+
== 2.0.1 (2019-12-04)
|
11
|
+
|
12
|
+
Important Bug Fix::
|
13
|
+
* Fixed an issue that caused all `reveal.js` options in CamelCase to use the default value instead of one specified as an AsciiDoc attribute ({uri-issue}263[#263], {uri-issue}267[#267])
|
14
|
+
|
15
|
+
Compliance::
|
16
|
+
* Dropped support for verse table cells ({uri-issue}246[#246]).
|
17
|
+
Asciidoctor 2.0 dropped it, we followed.
|
18
|
+
|
19
|
+
Enhancements::
|
20
|
+
* Documentation improvements ({uri-issue}264[#264], {uri-issue}278[#278], {uri-issue}280[#280])
|
21
|
+
|
22
|
+
Bug Fixes::
|
23
|
+
* Yarn.lock updates for security ({uri-issue}283[#283])
|
24
|
+
|
25
|
+
=== Release meta
|
26
|
+
|
27
|
+
* Released on: 2019-12-04
|
28
|
+
* Released by: Olivier Bilodeau
|
29
|
+
* Release whisky: Lot No. 40 Single Copper Pot Still Rye Whisky
|
30
|
+
|
31
|
+
{uri-repo}/releases/tag/v2.0.1[git tag] |
|
32
|
+
{uri-repo}/compare/v2.0.0...v2.0.1[full diff]
|
33
|
+
|
34
|
+
=== Credits
|
35
|
+
|
36
|
+
Thanks to the following people who contributed to this release:
|
37
|
+
|
38
|
+
Benjamin Schmid, Guillaume Grossetie, Olivier Bilodeau
|
39
|
+
|
40
|
+
|
9
41
|
== 2.0.0 (2019-02-28)
|
10
42
|
|
11
43
|
Upgrade considerations::
|
@@ -48,7 +80,7 @@ Enhancements::
|
|
48
80
|
|
49
81
|
Compliance::
|
50
82
|
* AsciiDoc source callout icons now work ({uri-issue}54[#54], {uri-issue}168[#168], {uri-issue}224[#224])
|
51
|
-
* New reveal.js 3.7.0 features supported: `controlsTutorial`, `controlsLayout`, `controlsBackArrows`, new `slideNumber` formats, `showSlideNumber`, `autoSlideMethod`, `parallaxBackgroundHorizontal`, `parallaxBackgroundVertical` and `display` configuration parameters are now supported ({uri-issue}212[#212], {uri-issue}239[#239],
|
83
|
+
* New reveal.js 3.7.0 features supported: `controlsTutorial`, `controlsLayout`, `controlsBackArrows`, new `slideNumber` formats, `showSlideNumber`, `autoSlideMethod`, `parallaxBackgroundHorizontal`, `parallaxBackgroundVertical` and `display` configuration parameters are now supported ({uri-issue}212[#212], {uri-issue}239[#239], {uri-issue}208[#208], {uri-issue}242[#242])
|
52
84
|
* Asciidoctor 2.0 ready ({uri-issue}245[#245])
|
53
85
|
|
54
86
|
Bug Fixes::
|
@@ -63,9 +95,9 @@ Infrastructure::
|
|
63
95
|
|
64
96
|
=== Release meta
|
65
97
|
|
66
|
-
* Released on:
|
98
|
+
* Released on: 2019-02-28
|
67
99
|
* Released by: Olivier Bilodeau
|
68
|
-
* Release beer: President's Choice Blonde Brew De-alcoholized Beer
|
100
|
+
* Release beer: President's Choice Blonde Brew De-alcoholized Beer (Sober February Successfully Completed!)
|
69
101
|
|
70
102
|
{uri-repo}/releases/tag/v2.0.0[git tag] |
|
71
103
|
{uri-repo}/compare/v1.1.3...v2.0.0[full diff] |
|
data/HACKING.adoc
CHANGED
@@ -286,6 +286,8 @@ Then run:
|
|
286
286
|
** Annotated Tag msg: Version %version%
|
287
287
|
. Push your changes (including the tag)
|
288
288
|
. Make a release on github (from changelog and copy from previous releases)
|
289
|
+
// TODO: reg needs fixin'
|
290
|
+
** Useful vim regex for AsciiDoc to Markdown: `:%s/{uri-issue}\d\+\(\(\[#\d\+\)]\)/\1(https:\/\/github.com\/asciidoctor\/asciidoctor-reveal.js\/issues\/\2)/gc`
|
289
291
|
. Pushing the gem on rubygems.org:
|
290
292
|
+
|
291
293
|
$ bundle exec rake build
|
data/README.adoc
CHANGED
@@ -42,7 +42,9 @@ Right now the Asciidoctor / Ruby stack is the better tested one but with the cha
|
|
42
42
|
ifeval::['{branch}' == 'master']
|
43
43
|
NOTE: You're viewing the documentation for an upcoming release.
|
44
44
|
If you're looking for the documentation for the current release or an older one, please click on the appropriate link below: +
|
45
|
-
{uri-project-repo}/tree/
|
45
|
+
{uri-project-repo}/tree/v2.0.0#readme[2.0.0] (latest release)
|
46
|
+
⁃
|
47
|
+
{uri-project-repo}/tree/v1.1.3#readme[1.1.3] (latest from 1.1 series)
|
46
48
|
⁃
|
47
49
|
{uri-project-repo}/tree/maint-1.0.x#readme[1.0.x]
|
48
50
|
⁃
|
@@ -674,7 +676,9 @@ Here are details about Asciidoctor's http://asciidoctor.org/docs/user-manual/#ad
|
|
674
676
|
|
675
677
|
== Reveal.js Options
|
676
678
|
|
677
|
-
|
679
|
+
Some attributes can be set at the top of the document that are specific to the `reveal.js` converter.
|
680
|
+
They use the same name as in the `reveal.js` project except that they are prepended by `revealjs_` and case doesn't matter.
|
681
|
+
They are applied in the link:templates/document.html.slim[document template].
|
678
682
|
|
679
683
|
NOTE: Default settings are based on `reveal.js` default settings.
|
680
684
|
|
@@ -875,6 +879,20 @@ a|Number of pixels to move the parallax background per slide
|
|
875
879
|
|<a valid CSS display mode>
|
876
880
|
|The display mode that will be used to show slides.
|
877
881
|
Defaults to *block*
|
882
|
+
|
883
|
+
|:revealjs_width:
|
884
|
+
|<pixels\|percentage unit>
|
885
|
+
| Independent from the values, the aspect ratio will be preserved
|
886
|
+
when scaled to fit different resolutions. Defaults to *960*
|
887
|
+
|
888
|
+
|:revealjs_height:
|
889
|
+
|<pixels\|percentage unit>
|
890
|
+
| See `:revealjs_width:`. Defaults to *700*
|
891
|
+
|
892
|
+
|:revealjs_margin:
|
893
|
+
|<percentage value>
|
894
|
+
| Factor of the display size that should remain empty around the content. Defaults to *0.1*
|
895
|
+
|
878
896
|
|===
|
879
897
|
|
880
898
|
If you want to build a custom theme or customize an existing one you should
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
|
29
29
|
s.extra_rdoc_files = Dir['README.adoc', 'LICENSE.adoc', 'HACKING.adoc']
|
30
30
|
s.require_paths = ['lib']
|
31
31
|
|
32
|
-
s.add_runtime_dependency 'asciidoctor', ['>= 1.5.6', '<
|
32
|
+
s.add_runtime_dependency 'asciidoctor', ['>= 1.5.6', '< 3.0.0']
|
33
33
|
s.add_runtime_dependency 'thread_safe', '~> 0.3.5'
|
34
34
|
s.add_runtime_dependency 'concurrent-ruby', '~> 1.0'
|
35
35
|
|
@@ -491,7 +491,7 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
|
|
491
491
|
; cell_content = cell.text;
|
492
492
|
; else;
|
493
493
|
; case cell.style;
|
494
|
-
; when :
|
494
|
+
; when :literal;
|
495
495
|
; cell_content = cell.text;
|
496
496
|
; else;
|
497
497
|
; cell_content = cell.content;
|
@@ -505,8 +505,6 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
|
|
505
505
|
; case cell.style;
|
506
506
|
; when :asciidoc;
|
507
507
|
; _slim_controls2 << ("<div>".freeze); _slim_controls2 << ((cell_content).to_s);
|
508
|
-
; _slim_controls2 << ("</div>".freeze); when :verse;
|
509
|
-
; _slim_controls2 << ("<div class=\"verse\">".freeze); _slim_controls2 << ((cell_content).to_s);
|
510
508
|
; _slim_controls2 << ("</div>".freeze); when :literal;
|
511
509
|
; _slim_controls2 << ("<div class=\"literal\"><pre>".freeze); _slim_controls2 << ((cell_content).to_s);
|
512
510
|
; _slim_controls2 << ("</pre></div>".freeze); when :header;
|
@@ -669,12 +667,12 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
|
|
669
667
|
; _buf << ((to_boolean(attr 'revealjs_controls', true)).to_s); _buf << (",\n // Help the user learn the controls by providing hints, for example by\n // bouncing the down arrow when they first encounter a vertical slide\n controlsTutorial: ".freeze);
|
670
668
|
;
|
671
669
|
;
|
672
|
-
; _buf << ((to_boolean(attr '
|
670
|
+
; _buf << ((to_boolean(attr 'revealjs_controlstutorial', true)).to_s); _buf << (",\n // Determines where controls appear, \"edges\" or \"bottom-right\"\n controlsLayout: '".freeze);
|
673
671
|
;
|
674
|
-
; _buf << ((attr '
|
672
|
+
; _buf << ((attr 'revealjs_controlslayout', 'bottom-right').to_s); _buf << ("',\n // Visibility rule for backwards navigation arrows; \"faded\", \"hidden\"\n // or \"visible\"\n controlsBackArrows: '".freeze);
|
675
673
|
;
|
676
674
|
;
|
677
|
-
; _buf << ((attr '
|
675
|
+
; _buf << ((attr 'revealjs_controlsbackarrows', 'faded').to_s); _buf << ("',\n // Display a presentation progress bar\n progress: ".freeze);
|
678
676
|
;
|
679
677
|
; _buf << ((to_boolean(attr 'revealjs_progress', true)).to_s); _buf << (",\n // Display the page number of the current slide\n slideNumber: ".freeze);
|
680
678
|
;
|
@@ -701,7 +699,7 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
|
|
701
699
|
; _buf << ((to_boolean(attr 'revealjs_fragments', true)).to_s); _buf << (",\n // Flags whether to include the current fragment in the URL,\n // so that reloading brings you to the same fragment position\n fragmentInURL: ".freeze);
|
702
700
|
;
|
703
701
|
;
|
704
|
-
; _buf << ((to_boolean(attr '
|
702
|
+
; _buf << ((to_boolean(attr 'revealjs_fragmentinurl', false)).to_s); _buf << (",\n // Flags if the presentation is running in an embedded mode,\n // i.e. contained within a limited portion of the screen\n embedded: ".freeze);
|
705
703
|
;
|
706
704
|
;
|
707
705
|
; _buf << ((to_boolean(attr 'revealjs_embedded', false)).to_s); _buf << (",\n // Flags if we should show a help overlay when the questionmark\n // key is pressed\n help: ".freeze);
|
@@ -709,49 +707,49 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
|
|
709
707
|
;
|
710
708
|
; _buf << ((to_boolean(attr 'revealjs_help', true)).to_s); _buf << (",\n // Flags if speaker notes should be visible to all viewers\n showNotes: ".freeze);
|
711
709
|
;
|
712
|
-
; _buf << ((to_boolean(attr '
|
710
|
+
; _buf << ((to_boolean(attr 'revealjs_shownotes', false)).to_s); _buf << (",\n // Global override for autolaying embedded media (video/audio/iframe)\n // - null: Media will only autoplay if data-autoplay is present\n // - true: All media will autoplay, regardless of individual setting\n // - false: No media will autoplay, regardless of individual setting\n autoPlayMedia: ".freeze);
|
713
711
|
;
|
714
712
|
;
|
715
713
|
;
|
716
714
|
;
|
717
|
-
; _buf << ((attr '
|
715
|
+
; _buf << ((attr 'revealjs_autoplaymedia', 'null').to_s); _buf << (",\n // Number of milliseconds between automatically proceeding to the\n // next slide, disabled when set to 0, this value can be overwritten\n // by using a data-autoslide attribute on your slides\n autoSlide: ".freeze);
|
718
716
|
;
|
719
717
|
;
|
720
718
|
;
|
721
|
-
; _buf << ((attr '
|
719
|
+
; _buf << ((attr 'revealjs_autoslide', 0).to_s); _buf << (",\n // Stop auto-sliding after user input\n autoSlideStoppable: ".freeze);
|
722
720
|
;
|
723
|
-
; _buf << ((to_boolean(attr '
|
721
|
+
; _buf << ((to_boolean(attr 'revealjs_autoslidestoppable', true)).to_s); _buf << (",\n // Use this method for navigation when auto-sliding\n autoSlideMethod: ".freeze);
|
724
722
|
;
|
725
|
-
; _buf << ((attr '
|
723
|
+
; _buf << ((attr 'revealjs_autoslidemethod', 'Reveal.navigateNext').to_s); _buf << (",\n // Specify the average time in seconds that you think you will spend\n // presenting each slide. This is used to show a pacing timer in the\n // speaker view\n defaultTiming: ".freeze);
|
726
724
|
;
|
727
725
|
;
|
728
726
|
;
|
729
|
-
; _buf << ((attr '
|
727
|
+
; _buf << ((attr 'revealjs_defaulttiming', 120).to_s); _buf << (",\n // Enable slide navigation via mouse wheel\n mouseWheel: ".freeze);
|
730
728
|
;
|
731
|
-
; _buf << ((to_boolean(attr '
|
729
|
+
; _buf << ((to_boolean(attr 'revealjs_mousewheel', false)).to_s); _buf << (",\n // Hides the address bar on mobile devices\n hideAddressBar: ".freeze);
|
732
730
|
;
|
733
|
-
; _buf << ((to_boolean(attr '
|
731
|
+
; _buf << ((to_boolean(attr 'revealjs_hideaddressbar', true)).to_s); _buf << (",\n // Opens links in an iframe preview overlay\n // Add `data-preview-link` and `data-preview-link=\"false\"` to customise each link\n // individually\n previewLinks: ".freeze);
|
734
732
|
;
|
735
733
|
;
|
736
734
|
;
|
737
|
-
; _buf << ((to_boolean(attr '
|
735
|
+
; _buf << ((to_boolean(attr 'revealjs_previewlinks', false)).to_s); _buf << (",\n // Transition style (e.g., none, fade, slide, convex, concave, zoom)\n transition: '".freeze);
|
738
736
|
;
|
739
737
|
; _buf << ((attr 'revealjs_transition', 'slide').to_s); _buf << ("',\n // Transition speed (e.g., default, fast, slow)\n transitionSpeed: '".freeze);
|
740
738
|
;
|
741
|
-
; _buf << ((attr '
|
739
|
+
; _buf << ((attr 'revealjs_transitionspeed', 'default').to_s); _buf << ("',\n // Transition style for full page slide backgrounds (e.g., none, fade, slide, convex, concave, zoom)\n backgroundTransition: '".freeze);
|
742
740
|
;
|
743
|
-
; _buf << ((attr '
|
741
|
+
; _buf << ((attr 'revealjs_backgroundtransition', 'fade').to_s); _buf << ("',\n // Number of slides away from the current that are visible\n viewDistance: ".freeze);
|
744
742
|
;
|
745
|
-
; _buf << ((attr '
|
743
|
+
; _buf << ((attr 'revealjs_viewdistance', 3).to_s); _buf << (",\n // Parallax background image (e.g., \"'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'\")\n parallaxBackgroundImage: '".freeze);
|
746
744
|
;
|
747
|
-
; _buf << ((attr '
|
745
|
+
; _buf << ((attr 'revealjs_parallaxbackgroundimage', '').to_s); _buf << ("',\n // Parallax background size in CSS syntax (e.g., \"2100px 900px\")\n parallaxBackgroundSize: '".freeze);
|
748
746
|
;
|
749
|
-
; _buf << ((attr '
|
747
|
+
; _buf << ((attr 'revealjs_parallaxbackgroundsize', '').to_s); _buf << ("',\n // Number of pixels to move the parallax background per slide\n // - Calculated automatically unless specified\n // - Set to 0 to disable movement along an axis\n parallaxBackgroundHorizontal: ".freeze);
|
750
748
|
;
|
751
749
|
;
|
752
750
|
;
|
753
|
-
; _buf << ((attr '
|
754
|
-
; _buf << ((attr '
|
751
|
+
; _buf << ((attr 'revealjs_parallaxbackgroundhorizontal', 'null').to_s); _buf << (",\n parallaxBackgroundVertical: ".freeze);
|
752
|
+
; _buf << ((attr 'revealjs_parallaxbackgroundvertical', 'null').to_s); _buf << (",\n // The display mode that will be used to show slides\n display: '".freeze);
|
755
753
|
;
|
756
754
|
; _buf << ((attr 'revealjs_display', 'block').to_s); _buf << ("',\n\n // The \"normal\" size of the presentation, aspect ratio will be preserved\n // when the presentation is scaled to fit different resolutions. Can be\n // specified using percentage units.\n width: ".freeze);
|
757
755
|
;
|
@@ -130,12 +130,12 @@ html lang=(attr :lang, 'en' unless attr? :nolang)
|
|
130
130
|
controls: #{to_boolean(attr 'revealjs_controls', true)},
|
131
131
|
// Help the user learn the controls by providing hints, for example by
|
132
132
|
// bouncing the down arrow when they first encounter a vertical slide
|
133
|
-
controlsTutorial: #{to_boolean(attr '
|
133
|
+
controlsTutorial: #{to_boolean(attr 'revealjs_controlstutorial', true)},
|
134
134
|
// Determines where controls appear, "edges" or "bottom-right"
|
135
|
-
controlsLayout: '#{attr '
|
135
|
+
controlsLayout: '#{attr 'revealjs_controlslayout', 'bottom-right'}',
|
136
136
|
// Visibility rule for backwards navigation arrows; "faded", "hidden"
|
137
137
|
// or "visible"
|
138
|
-
controlsBackArrows: '#{attr '
|
138
|
+
controlsBackArrows: '#{attr 'revealjs_controlsbackarrows', 'faded'}',
|
139
139
|
// Display a presentation progress bar
|
140
140
|
progress: #{to_boolean(attr 'revealjs_progress', true)},
|
141
141
|
// Display the page number of the current slide
|
@@ -162,7 +162,7 @@ html lang=(attr :lang, 'en' unless attr? :nolang)
|
|
162
162
|
fragments: #{to_boolean(attr 'revealjs_fragments', true)},
|
163
163
|
// Flags whether to include the current fragment in the URL,
|
164
164
|
// so that reloading brings you to the same fragment position
|
165
|
-
fragmentInURL: #{to_boolean(attr '
|
165
|
+
fragmentInURL: #{to_boolean(attr 'revealjs_fragmentinurl', false)},
|
166
166
|
// Flags if the presentation is running in an embedded mode,
|
167
167
|
// i.e. contained within a limited portion of the screen
|
168
168
|
embedded: #{to_boolean(attr 'revealjs_embedded', false)},
|
@@ -170,49 +170,49 @@ html lang=(attr :lang, 'en' unless attr? :nolang)
|
|
170
170
|
// key is pressed
|
171
171
|
help: #{to_boolean(attr 'revealjs_help', true)},
|
172
172
|
// Flags if speaker notes should be visible to all viewers
|
173
|
-
showNotes: #{to_boolean(attr '
|
173
|
+
showNotes: #{to_boolean(attr 'revealjs_shownotes', false)},
|
174
174
|
// Global override for autolaying embedded media (video/audio/iframe)
|
175
175
|
// - null: Media will only autoplay if data-autoplay is present
|
176
176
|
// - true: All media will autoplay, regardless of individual setting
|
177
177
|
// - false: No media will autoplay, regardless of individual setting
|
178
|
-
autoPlayMedia: #{attr '
|
178
|
+
autoPlayMedia: #{attr 'revealjs_autoplaymedia', 'null'},
|
179
179
|
// Number of milliseconds between automatically proceeding to the
|
180
180
|
// next slide, disabled when set to 0, this value can be overwritten
|
181
181
|
// by using a data-autoslide attribute on your slides
|
182
|
-
autoSlide: #{attr '
|
182
|
+
autoSlide: #{attr 'revealjs_autoslide', 0},
|
183
183
|
// Stop auto-sliding after user input
|
184
|
-
autoSlideStoppable: #{to_boolean(attr '
|
184
|
+
autoSlideStoppable: #{to_boolean(attr 'revealjs_autoslidestoppable', true)},
|
185
185
|
// Use this method for navigation when auto-sliding
|
186
|
-
autoSlideMethod: #{attr '
|
186
|
+
autoSlideMethod: #{attr 'revealjs_autoslidemethod', 'Reveal.navigateNext'},
|
187
187
|
// Specify the average time in seconds that you think you will spend
|
188
188
|
// presenting each slide. This is used to show a pacing timer in the
|
189
189
|
// speaker view
|
190
|
-
defaultTiming: #{attr '
|
190
|
+
defaultTiming: #{attr 'revealjs_defaulttiming', 120},
|
191
191
|
// Enable slide navigation via mouse wheel
|
192
|
-
mouseWheel: #{to_boolean(attr '
|
192
|
+
mouseWheel: #{to_boolean(attr 'revealjs_mousewheel', false)},
|
193
193
|
// Hides the address bar on mobile devices
|
194
|
-
hideAddressBar: #{to_boolean(attr '
|
194
|
+
hideAddressBar: #{to_boolean(attr 'revealjs_hideaddressbar', true)},
|
195
195
|
// Opens links in an iframe preview overlay
|
196
196
|
// Add `data-preview-link` and `data-preview-link="false"` to customise each link
|
197
197
|
// individually
|
198
|
-
previewLinks: #{to_boolean(attr '
|
198
|
+
previewLinks: #{to_boolean(attr 'revealjs_previewlinks', false)},
|
199
199
|
// Transition style (e.g., none, fade, slide, convex, concave, zoom)
|
200
200
|
transition: '#{attr 'revealjs_transition', 'slide'}',
|
201
201
|
// Transition speed (e.g., default, fast, slow)
|
202
|
-
transitionSpeed: '#{attr '
|
202
|
+
transitionSpeed: '#{attr 'revealjs_transitionspeed', 'default'}',
|
203
203
|
// Transition style for full page slide backgrounds (e.g., none, fade, slide, convex, concave, zoom)
|
204
|
-
backgroundTransition: '#{attr '
|
204
|
+
backgroundTransition: '#{attr 'revealjs_backgroundtransition', 'fade'}',
|
205
205
|
// Number of slides away from the current that are visible
|
206
|
-
viewDistance: #{attr '
|
206
|
+
viewDistance: #{attr 'revealjs_viewdistance', 3},
|
207
207
|
// Parallax background image (e.g., "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'")
|
208
|
-
parallaxBackgroundImage: '#{attr '
|
208
|
+
parallaxBackgroundImage: '#{attr 'revealjs_parallaxbackgroundimage', ''}',
|
209
209
|
// Parallax background size in CSS syntax (e.g., "2100px 900px")
|
210
|
-
parallaxBackgroundSize: '#{attr '
|
210
|
+
parallaxBackgroundSize: '#{attr 'revealjs_parallaxbackgroundsize', ''}',
|
211
211
|
// Number of pixels to move the parallax background per slide
|
212
212
|
// - Calculated automatically unless specified
|
213
213
|
// - Set to 0 to disable movement along an axis
|
214
|
-
parallaxBackgroundHorizontal: #{attr '
|
215
|
-
parallaxBackgroundVertical: #{attr '
|
214
|
+
parallaxBackgroundHorizontal: #{attr 'revealjs_parallaxbackgroundhorizontal', 'null'},
|
215
|
+
parallaxBackgroundVertical: #{attr 'revealjs_parallaxbackgroundvertical', 'null'},
|
216
216
|
// The display mode that will be used to show slides
|
217
217
|
display: '#{attr 'revealjs_display', 'block'}',
|
218
218
|
|
data/templates/table.html.slim
CHANGED
@@ -21,7 +21,7 @@ table(id=@id class=['tableblock',"frame-#{attr :frame, 'all'}","grid-#{attr :gri
|
|
21
21
|
- cell_content = cell.text
|
22
22
|
- else
|
23
23
|
- case cell.style
|
24
|
-
- when :
|
24
|
+
- when :literal
|
25
25
|
- cell_content = cell.text
|
26
26
|
- else
|
27
27
|
- cell_content = cell.content
|
@@ -35,8 +35,6 @@ table(id=@id class=['tableblock',"frame-#{attr :frame, 'all'}","grid-#{attr :gri
|
|
35
35
|
- case cell.style
|
36
36
|
- when :asciidoc
|
37
37
|
div=cell_content
|
38
|
-
- when :verse
|
39
|
-
.verse=cell_content
|
40
38
|
- when :literal
|
41
39
|
.literal: pre=cell_content
|
42
40
|
- when :header
|
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: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier Bilodeau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 1.5.6
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 3.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 1.5.6
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 3.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: thread_safe
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -344,7 +344,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
344
344
|
- !ruby/object:Gem::Version
|
345
345
|
version: '0'
|
346
346
|
requirements: []
|
347
|
-
rubygems_version: 3.0.
|
347
|
+
rubygems_version: 3.0.6
|
348
348
|
signing_key:
|
349
349
|
specification_version: 4
|
350
350
|
summary: Converts AsciiDoc to HTML for a Reveal.js presentation
|