asciidoctor-revealjs 3.1.0 → 4.1.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +328 -55
  3. data/Rakefile +30 -7
  4. data/asciidoctor-revealjs.gemspec +5 -3
  5. data/examples/a11y-dark.css +99 -0
  6. data/examples/autoslide.adoc +22 -0
  7. data/examples/custom-layout.adoc +10 -0
  8. data/examples/data-attributes.adoc +245 -0
  9. data/examples/docinfo-footer-revealjs.html +10 -0
  10. data/examples/docinfo-revealjs.html +7 -0
  11. data/examples/font-awesome-specific-version.adoc +11 -0
  12. data/examples/font-awesome.adoc +18 -3
  13. data/examples/font-awesome.css +3 -0
  14. data/examples/footnotes.adoc +46 -0
  15. data/examples/fragments.adoc +44 -0
  16. data/examples/fragments.css +18 -0
  17. data/examples/grid-layout-3x2.adoc +50 -0
  18. data/examples/grid-layout-docinfo-revealjs.html +11 -0
  19. data/examples/grid-layout.adoc +194 -0
  20. data/examples/history-hash.adoc +19 -0
  21. data/examples/history-regression-tests.adoc +0 -5
  22. data/examples/history.adoc +4 -4
  23. data/examples/images/asciidoctor-logo.svg +102 -0
  24. data/examples/images/cute-cat-1.jpg +0 -0
  25. data/examples/images/cute-cat-2.jpg +0 -0
  26. data/examples/images/cute-cat-3.jpg +0 -0
  27. data/examples/images/flock-of-seagulls_daniel-simion.mp3 +0 -0
  28. data/examples/issue-grid-layout-images.adoc +25 -0
  29. data/examples/level-sectnums.adoc +24 -0
  30. data/examples/links-preview.adoc +32 -0
  31. data/examples/links.adoc +39 -0
  32. data/examples/mathjax-cdn.adoc +21 -0
  33. data/examples/mathjax.adoc +20 -0
  34. data/examples/release-4.0.adoc +192 -0
  35. data/examples/release-4.0.css +23 -0
  36. data/examples/release-4.1.adoc +133 -0
  37. data/examples/release-4.1.css +50 -0
  38. data/examples/revealjs-custom-theme.adoc +10 -0
  39. data/examples/source-coderay.adoc +15 -0
  40. data/examples/source-emphasis.adoc +128 -0
  41. data/examples/source-highlightjs-html.adoc +1 -1
  42. data/examples/source-highlightjs-languages.adoc +27 -0
  43. data/examples/source-highlightjs.adoc +85 -2
  44. data/examples/source-pygments.adoc +12 -0
  45. data/examples/source-rouge-docinfo.html +8 -0
  46. data/examples/source-rouge.adoc +18 -0
  47. data/examples/steps.adoc +87 -0
  48. data/examples/text-alignments.adoc +44 -0
  49. data/examples/video.adoc +30 -8
  50. data/examples/with-docinfo-shared.adoc +13 -0
  51. data/lib/asciidoctor-revealjs/converter.rb +1053 -770
  52. data/lib/asciidoctor-revealjs/highlightjs.rb +333 -2
  53. data/lib/asciidoctor-revealjs/version.rb +1 -1
  54. data/templates/admonition.html.slim +1 -1
  55. data/templates/asciidoctor-compatibility.css +390 -0
  56. data/templates/audio.html.slim +1 -1
  57. data/templates/colist.html.slim +1 -1
  58. data/templates/dlist.html.slim +3 -3
  59. data/templates/document.html.slim +76 -60
  60. data/templates/example.html.slim +1 -1
  61. data/templates/helpers.rb +170 -5
  62. data/templates/image.html.slim +3 -3
  63. data/templates/inline_anchor.html.slim +6 -4
  64. data/templates/inline_button.html.slim +2 -1
  65. data/templates/inline_footnote.html.slim +11 -4
  66. data/templates/inline_image.html.slim +5 -8
  67. data/templates/inline_kbd.html.slim +3 -2
  68. data/templates/inline_menu.html.slim +4 -3
  69. data/templates/inline_quoted.html.slim +13 -21
  70. data/templates/listing.html.slim +15 -10
  71. data/templates/literal.html.slim +1 -1
  72. data/templates/olist.html.slim +2 -2
  73. data/templates/open.html.slim +3 -3
  74. data/templates/paragraph.html.slim +1 -1
  75. data/templates/quote.html.slim +1 -1
  76. data/templates/section.html.slim +51 -43
  77. data/templates/sidebar.html.slim +1 -1
  78. data/templates/stem.html.slim +1 -1
  79. data/templates/stretch_nested_elements.js.slim +65 -0
  80. data/templates/table.html.slim +3 -2
  81. data/templates/title_slide.html.slim +28 -0
  82. data/templates/ulist.html.slim +3 -3
  83. data/templates/verse.html.slim +1 -1
  84. data/templates/video.html.slim +14 -8
  85. metadata +79 -16
  86. data/CHANGELOG.adoc +0 -456
  87. data/HACKING.adoc +0 -404
  88. data/examples/revealjs-features.adoc +0 -23
  89. data/templates/asciidoctor_revealjs.css.slim +0 -59
@@ -0,0 +1,28 @@
1
+ - bg_image = (attr? 'title-slide-background-image') ? (image_uri(attr 'title-slide-background-image')) : nil
2
+ - bg_video = (attr? 'title-slide-background-video') ? (media_uri(attr 'title-slide-background-video')) : nil
3
+ section.title(class = role
4
+ data-state='title'
5
+ data-transition=(attr 'title-slide-transition')
6
+ data-transition-speed=(attr 'title-slide-transition-speed')
7
+ data-background=(attr 'title-slide-background')
8
+ data-background-size=(attr 'title-slide-background-size')
9
+ data-background-image=bg_image
10
+ data-background-video=bg_video
11
+ data-background-video-loop=(attr 'title-slide-background-video-loop')
12
+ data-background-video-muted=(attr 'title-slide-background-video-muted')
13
+ data-background-opacity=(attr 'title-slide-background-opacity')
14
+ data-background-iframe=(attr 'title-slide-background-iframe')
15
+ data-background-color=(attr 'title-slide-background-color')
16
+ data-background-repeat=(attr 'title-slide-background-repeat')
17
+ data-background-position=(attr 'title-slide-background-position')
18
+ data-background-transition=(attr 'title-slide-background-transition'))
19
+ - if (_title_obj = doctitle partition: true, use_fallback: true).subtitle?
20
+ h1=slice_text _title_obj.title, (_slice = header.option? :slice)
21
+ h2=slice_text _title_obj.subtitle, _slice
22
+ - else
23
+ h1=@header.title
24
+ - preamble = @document.find_by context: :preamble
25
+ - unless preamble.nil? or preamble.length == 0
26
+ div.preamble=preamble.pop.content
27
+ - unless author.nil?
28
+ p.author: small=author
@@ -6,16 +6,16 @@
6
6
  - if @document.attr? :icons, 'font'
7
7
  - marker_checked = '<i class="icon-check"></i>'
8
8
  - marker_unchecked = '<i class="icon-check-empty"></i>'
9
- - else
9
+ - else
10
10
  / could use &#9745 (checked ballot) and &#9744 (ballot) w/o font instead
11
11
  - marker_checked = '<input type="checkbox" data-item-complete="1" checked disabled>'
12
12
  - marker_unchecked = '<input type="checkbox" data-item-complete="0" disabled>'
13
- .ulist id=@id class=[checklist,@style,role]
13
+ = html_tag('div', { :id => @id, :class => ['ulist', checklist, @style, role] }.merge(data_attrs(@attributes)))
14
14
  - if title?
15
15
  .title=title
16
16
  ul class=(checklist || @style)
17
17
  - items.each do |item|
18
- li class=('fragment' if (option? :step) || (has_role? 'step'))
18
+ li class=('fragment' if (option? :step) || (has_role? 'step') || (attr? 'step'))
19
19
  p
20
20
  - if checklist && (item.attr? :checkbox)
21
21
  =%(#{(item.attr? :checked) ? marker_checked : marker_unchecked}#{item.text})
@@ -1,4 +1,4 @@
1
- .verseblock id=@id class=role
1
+ = html_tag('div', { :id => @id, :class => ['verseblock', role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes)))
2
2
  - if title?
3
3
  .title=title
4
4
  pre.content=content
@@ -4,7 +4,7 @@
4
4
  - width = (attr? :width) ? (attr :width) : "100%"
5
5
  - height = (attr? :height) ? (attr :height) : "100%"
6
6
  / we apply revealjs stretch class to the videoblock take all the place we can
7
- .videoblock id=@id class=[@style,role,(no_stretch ? nil : "stretch")]
7
+ = html_tag('div', { :id => @id, :class => ['videoblock', @style, role, (no_stretch ? nil : 'stretch'), ('fragment' if (option? :step) || (has_role? 'step') || (attr? 'step'))] }.merge(data_attrs(@attributes)))
8
8
  - if title?
9
9
  .title=captioned_title
10
10
  - case attr :poster
@@ -12,14 +12,16 @@
12
12
  - unless (asset_uri_scheme = (attr :asset_uri_scheme, 'https')).empty?
13
13
  - asset_uri_scheme = %(#{asset_uri_scheme}:)
14
14
  - start_anchor = (attr? :start) ? "#at=#{attr :start}" : nil
15
- - delimiter = '?'
16
- - loop_param = (option? 'loop') ? "#{delimiter}loop=1" : nil
17
- - src = %(#{asset_uri_scheme}//player.vimeo.com/video/#{attr :target}#{start_anchor}#{loop_param})
15
+ - delimiter = ['?']
16
+ - loop_param = (option? 'loop') ? %(#{delimiter.pop || '&amp;'}loop=1) : ''
17
+ - muted_param = (option? 'muted') ? %(#{delimiter.pop || '&amp;'}muted=1) : ''
18
+ - src = %(#{asset_uri_scheme}//player.vimeo.com/video/#{attr :target}#{loop_param}#{muted_param}#{start_anchor})
19
+ / We need to delegate autoplay into the iframe starting with Chrome 62 (and other browsers too)
20
+ / See https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe
18
21
  iframe(width=(width) height=(height) src=src frameborder=0
19
22
  webkitAllowFullScreen=true mozallowfullscreen=true allowFullScreen=true
20
- data-autoplay=(option? 'autoplay'))
21
- / data-autoplay is not supported on vimeo videos
22
- / upstream: https://github.com/hakimel/reveal.js/issues/388
23
+ data-autoplay=(option? 'autoplay')
24
+ allow=((option? 'autoplay') ? "autoplay" : nil))
23
25
  - when 'youtube'
24
26
  - unless (asset_uri_scheme = (attr :asset_uri_scheme, 'https')).empty?
25
27
  - asset_uri_scheme = %(#{asset_uri_scheme}:)
@@ -27,11 +29,15 @@
27
29
  - params << "start=#{attr :start}" if attr? :start
28
30
  - params << "end=#{attr :end}" if attr? :end
29
31
  - params << "loop=1" if option? 'loop'
32
+ - params << "mute=1" if option? 'muted'
30
33
  - params << "controls=0" if option? 'nocontrols'
31
34
  - src = %(#{asset_uri_scheme}//www.youtube.com/embed/#{attr :target}?#{params * '&amp;'})
35
+ / We need to delegate autoplay into the iframe starting with Chrome 62 (and other browsers too)
36
+ / See https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe
32
37
  iframe(width=(width) height=(height) src=src
33
38
  frameborder=0 allowfullscreen=!(option? 'nofullscreen')
34
- data-autoplay=(option? 'autoplay'))
39
+ data-autoplay=(option? 'autoplay')
40
+ allow=((option? 'autoplay') ? "autoplay" : nil))
35
41
  - else
36
42
  video(src=media_uri(attr :target) width=(width) height=(height)
37
43
  poster=((attr :poster) ? media_uri(attr :poster) : nil)
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.1.0
4
+ version: 4.1.0.rc4
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-19 00:00:00.000000000 Z
11
+ date: 2020-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -78,28 +78,56 @@ dependencies:
78
78
  requirements:
79
79
  - - '='
80
80
  - !ruby/object:Gem::Version
81
- version: 2.0.0.beta.5
81
+ version: 2.0.0.beta.7
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - '='
87
87
  - !ruby/object:Gem::Version
88
- version: 2.0.0.beta.5
88
+ version: 2.0.0.beta.7
89
+ - !ruby/object:Gem::Dependency
90
+ name: minitest
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '5.14'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '5.14'
89
103
  - !ruby/object:Gem::Dependency
90
104
  name: pry
91
105
  requirement: !ruby/object:Gem::Requirement
92
106
  requirements:
93
107
  - - "~>"
94
108
  - !ruby/object:Gem::Version
95
- version: 0.10.4
109
+ version: 0.12.0
96
110
  type: :development
97
111
  prerelease: false
98
112
  version_requirements: !ruby/object:Gem::Requirement
99
113
  requirements:
100
114
  - - "~>"
101
115
  - !ruby/object:Gem::Version
102
- version: 0.10.4
116
+ version: 0.12.0
117
+ - !ruby/object:Gem::Dependency
118
+ name: irb
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
103
131
  - !ruby/object:Gem::Dependency
104
132
  name: pry-byebug
105
133
  requirement: !ruby/object:Gem::Requirement
@@ -148,14 +176,14 @@ dependencies:
148
176
  requirements:
149
177
  - - "~>"
150
178
  - !ruby/object:Gem::Version
151
- version: 0.4.2
179
+ version: 0.6.0
152
180
  type: :development
153
181
  prerelease: false
154
182
  version_requirements: !ruby/object:Gem::Requirement
155
183
  requirements:
156
184
  - - "~>"
157
185
  - !ruby/object:Gem::Version
158
- version: 0.4.2
186
+ version: 0.6.0
159
187
  - !ruby/object:Gem::Dependency
160
188
  name: slim
161
189
  requirement: !ruby/object:Gem::Requirement
@@ -208,40 +236,67 @@ extensions: []
208
236
  extra_rdoc_files:
209
237
  - README.adoc
210
238
  - LICENSE.adoc
211
- - HACKING.adoc
212
239
  files:
213
- - CHANGELOG.adoc
214
240
  - Gemfile
215
- - HACKING.adoc
216
241
  - LICENSE.adoc
217
242
  - README.adoc
218
243
  - Rakefile
219
244
  - asciidoctor-revealjs.gemspec
220
245
  - bin/asciidoctor-revealjs
221
246
  - examples/README.adoc
247
+ - examples/a11y-dark.css
222
248
  - examples/admonitions-icons.adoc
223
249
  - examples/admonitions.adoc
250
+ - examples/autoslide.adoc
224
251
  - examples/background-color.adoc
225
252
  - examples/background-color.css
226
253
  - examples/concealed-slide-titles.adoc
254
+ - examples/custom-layout.adoc
227
255
  - examples/customcss.adoc
228
256
  - examples/customcss.css
257
+ - examples/data-attributes.adoc
229
258
  - examples/data-background-newstyle.adoc
230
259
  - examples/data-background-oldstyle.adoc
260
+ - examples/docinfo-footer-revealjs.html
261
+ - examples/docinfo-revealjs.html
262
+ - examples/font-awesome-specific-version.adoc
231
263
  - examples/font-awesome.adoc
264
+ - examples/font-awesome.css
265
+ - examples/footnotes.adoc
266
+ - examples/fragments.adoc
267
+ - examples/fragments.css
268
+ - examples/grid-layout-3x2.adoc
269
+ - examples/grid-layout-docinfo-revealjs.html
270
+ - examples/grid-layout.adoc
271
+ - examples/history-hash.adoc
232
272
  - examples/history-regression-tests.adoc
233
273
  - examples/history.adoc
234
274
  - examples/images.adoc
235
275
  - examples/images/70s.jpg
276
+ - examples/images/asciidoctor-logo.svg
236
277
  - examples/images/bio.jpg
237
278
  - examples/images/cover.jpg
279
+ - examples/images/cute-cat-1.jpg
280
+ - examples/images/cute-cat-2.jpg
281
+ - examples/images/cute-cat-3.jpg
282
+ - examples/images/flock-of-seagulls_daniel-simion.mp3
238
283
  - examples/images/meme-2.jpg
239
284
  - examples/images/meme-7.png
240
285
  - examples/images/web_surfing_time.gif
286
+ - examples/issue-grid-layout-images.adoc
241
287
  - examples/keyboard-shortcuts.adoc
242
288
  - examples/level-sections.adoc
289
+ - examples/level-sectnums.adoc
290
+ - examples/links-preview.adoc
291
+ - examples/links.adoc
292
+ - examples/mathjax-cdn.adoc
293
+ - examples/mathjax.adoc
243
294
  - examples/multi-destination-content.adoc
244
- - examples/revealjs-features.adoc
295
+ - examples/release-4.0.adoc
296
+ - examples/release-4.0.css
297
+ - examples/release-4.1.adoc
298
+ - examples/release-4.1.css
299
+ - examples/revealjs-custom-theme.adoc
245
300
  - examples/revealjs-plugin-activation.adoc
246
301
  - examples/revealjs-plugins-conf.js
247
302
  - examples/revealjs-plugins.adoc
@@ -293,13 +348,18 @@ files:
293
348
  - examples/slide-state.css
294
349
  - examples/source-callouts.adoc
295
350
  - examples/source-coderay.adoc
351
+ - examples/source-emphasis.adoc
296
352
  - examples/source-highlightjs-html.adoc
353
+ - examples/source-highlightjs-languages.adoc
297
354
  - examples/source-highlightjs.adoc
298
355
  - examples/source-prettify.adoc
299
356
  - examples/source-pygments.adoc
357
+ - examples/source-rouge-docinfo.html
300
358
  - examples/source-rouge.adoc
301
359
  - examples/speaker-notes.adoc
360
+ - examples/steps.adoc
302
361
  - examples/tables-styles.adoc
362
+ - examples/text-alignments.adoc
303
363
  - examples/theme-custom.adoc
304
364
  - examples/theme-custom.css
305
365
  - examples/title-preamble.adoc
@@ -310,13 +370,14 @@ files:
310
370
  - examples/transitions.adoc
311
371
  - examples/vertical-slides.adoc
312
372
  - examples/video.adoc
373
+ - examples/with-docinfo-shared.adoc
313
374
  - lib/asciidoctor-revealjs.rb
314
375
  - lib/asciidoctor-revealjs/converter.rb
315
376
  - lib/asciidoctor-revealjs/highlightjs.rb
316
377
  - lib/asciidoctor-revealjs/version.rb
317
378
  - lib/asciidoctor-templates-compiler.rb
318
379
  - templates/admonition.html.slim
319
- - templates/asciidoctor_revealjs.css.slim
380
+ - templates/asciidoctor-compatibility.css
320
381
  - templates/audio.html.slim
321
382
  - templates/colist.html.slim
322
383
  - templates/dlist.html.slim
@@ -351,8 +412,10 @@ files:
351
412
  - templates/section.html.slim
352
413
  - templates/sidebar.html.slim
353
414
  - templates/stem.html.slim
415
+ - templates/stretch_nested_elements.js.slim
354
416
  - templates/table.html.slim
355
417
  - templates/thematic_break.html.slim
418
+ - templates/title_slide.html.slim
356
419
  - templates/toc.html.slim
357
420
  - templates/ulist.html.slim
358
421
  - templates/verse.html.slim
@@ -372,11 +435,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
372
435
  version: '0'
373
436
  required_rubygems_version: !ruby/object:Gem::Requirement
374
437
  requirements:
375
- - - ">="
438
+ - - ">"
376
439
  - !ruby/object:Gem::Version
377
- version: '0'
440
+ version: 1.3.1
378
441
  requirements: []
379
- rubygems_version: 3.1.2
442
+ rubygems_version: 3.1.4
380
443
  signing_key:
381
444
  specification_version: 4
382
445
  summary: A reveal.js converter for Asciidoctor. Write your slides in AsciiDoc!
@@ -1,456 +0,0 @@
1
- = {project-name} Changelog
2
- :project-name: asciidoctor-reveal.js
3
- :uri-repo: https://github.com/asciidoctor/asciidoctor-reveal.js
4
- :uri-issue: {uri-repo}/issues/
5
-
6
- This document provides a high-level view of the changes introduced in {project-name} by release.
7
- For a detailed view of what has changed, refer to the {uri-repo}/commits/master[commit history] on GitHub.
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
-
41
- == 3.0.0 (2020-01-07)
42
-
43
- An API breaking release for Asciidoctor.js users that brings a bright future of long term stability.
44
- New Reveal.js features supported: background opacity, background positions, and PDF export.
45
- AsciiDoc table options now supported.
46
- A big FontAwesome update.
47
- Many other little improvements and polish.
48
-
49
- Special heads-up: we are already planning for another major release since Reveal.js 3.8 support will be considered a breaking change.
50
- They changed how it is loaded and requires a template change incompatible with Reveal.js 3.1-3.7.
51
-
52
- Upgrade considerations::
53
- * Node.js packaging changes!
54
- With the arrival of Asciidoctor.js 2.0.0 you can now use a command line interface (CLI) just like with Asciidoctor Ruby:
55
-
56
- $(npm bin)/asciidoctor -r @asciidoctor/reveal.js -b revealjs presentation.adoc
57
- +
58
- If you want to keep generating your reveal.js presentations using the Node.js API, you need to change the following code.
59
- Instead of:
60
-
61
- var asciidoctorRevealjs = require('asciidoctor-reveal.js');
62
- asciidoctorRevealjs.register()
63
- +
64
- Use:
65
-
66
- var asciidoctor = require('@asciidoctor/core')()
67
- var asciidoctorRevealjs = require('@asciidoctor/reveal.js')
68
- asciidoctorRevealjs.register()
69
- +
70
- * Node.js package name changed from `asciidoctor-reveal.js` to `@asciidoctor/reveal.js` ({uri-issue}252[#252], {uri-issue}291[#291])
71
- * Custom CSS might require adjustments.
72
- Source and listing block encapsulation changed due to our migration to Asciidoctor 2.0.0 Syntax Highlighter API.
73
- See {uri-issue}287[#287].
74
- * Upgraded to Font-Awesome 5.8.2 from 4.3.0 which contains some backward incompatible changes ({uri-issue}268[#268])
75
- * {project-name} now requires Asciidoctor 2.0.0+ or Asciidoctor.js 2.0.0+ ({uri-issue}290[#290])
76
- * Dropped support for end-of-life Ruby version 2.1 and 2.2 ({uri-issue}247[#247])
77
-
78
- Compliance::
79
- * Added support for table frame, grid, header and alignment options ({uri-issue}29[#29], {uri-issue}42[#42], {uri-issue}56[#56], {uri-issue}288[#288])
80
- * Source code callout style aligned with Asciidoctor's ({uri-issue}293[#293], {uri-issue}300[#300])
81
- * Added support for Reveal.js data-background-opacity ({uri-issue}269[#269])
82
- * Added support for Reveal.js data-background-position ({uri-issue}273[#273], {uri-issue}274[#274])
83
- * Updated the process to include the generated converter in releases ({uri-issue}265[#265], {uri-issue}302[#302])
84
-
85
- Enhancements::
86
- * Support for Asciidoctor.js 2.0.0+ which brings a command line interface ({uri-issue}254[#254])
87
- * Process updates, narrower install version range and compatibility matrix regarding Asciidoctor.js ({uri-issue}187[#187], {uri-issue}303[#303])
88
- * Migrated to Asciidoctor 2.0.0 new https://github.com/asciidoctor/asciidoctor/releases/tag/v2.0.0[Syntax Highlighter API] ({uri-issue}261[#261], {uri-issue}287[#287])
89
- * Added support for Reveal.js PDF export options ({uri-issue}277[#277])
90
- * Upgraded to Font-Awesome 5.8.2 ({uri-issue}268[#268])
91
- * We now accept `reveal.js` as converter/backend name in addition to `revealjs` ({uri-issue}253[#253], {uri-issue}297[#297])
92
- * Babel integration example API updated to use {project-name} current API ({uri-issue}285[#285], {uri-issue}298[#298])
93
- * Node.js package clean-ups ({uri-issue}279[#279], {uri-issue}281[#281], {uri-issue}282[#282])
94
- * Upgrade Opal to use a compatible version with Asciidoctor.js 2.0.3 ({uri-issue}289[#289])
95
- * Documentation improvements ({uri-issue}292[#292], {uri-issue}302[#302])
96
- * Improvements to tests ({uri-issue}294[#294])
97
-
98
- Bug Fixes::
99
- * Babel integration example updated for security ({uri-issue}285[#285])
100
-
101
- Infrastructure::
102
- * Updated Travis' JRuby to fix issues with bundler ({uri-issue}295[#295])
103
-
104
- === Release meta
105
-
106
- * Released on: 2020-01-07
107
- * Released by: Olivier Bilodeau
108
- * Release beer: Porter Baltique Édition Spéciale 2019, Les Trois Mousquetaires
109
-
110
- {uri-repo}/releases/tag/v3.0.0[git tag] |
111
- {uri-repo}/compare/v2.0.1...v3.0.0[full diff] |
112
- {uri-repo}/milestone/7[milestone]
113
-
114
- === Credits
115
-
116
- Thanks to the following people who contributed to this release:
117
-
118
- Benjamin Schmid, Daniel Mulholland, Eiji Onchi, Gérald Quintana, Guillaume Grossetie and Olivier Bilodeau
119
-
120
-
121
- == 2.0.1 (2019-12-04)
122
-
123
- Important Bug Fix::
124
- * 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])
125
-
126
- Compliance::
127
- * Dropped support for verse table cells ({uri-issue}246[#246]).
128
- Asciidoctor 2.0 dropped it, we followed.
129
-
130
- Enhancements::
131
- * Documentation improvements ({uri-issue}264[#264], {uri-issue}278[#278], {uri-issue}280[#280])
132
-
133
- Bug Fixes::
134
- * Yarn.lock updates for security ({uri-issue}283[#283])
135
-
136
- === Release meta
137
-
138
- * Released on: 2019-12-04
139
- * Released by: Olivier Bilodeau
140
- * Release whisky: Lot No. 40 Single Copper Pot Still Rye Whisky
141
-
142
- {uri-repo}/releases/tag/v2.0.1[git tag] |
143
- {uri-repo}/compare/v2.0.0...v2.0.1[full diff]
144
-
145
- === Credits
146
-
147
- Thanks to the following people who contributed to this release:
148
-
149
- Benjamin Schmid, Guillaume Grossetie, Olivier Bilodeau
150
-
151
-
152
- == 2.0.0 (2019-02-28)
153
-
154
- Upgrade considerations::
155
- * Node.js API change!
156
- If you generate your reveal.js presentations using the node/javascript toolchain, you need to change how the {project-name} back-end is registered to Asciidoctor.js.
157
- Instead of `require('asciidoctor-reveal.js')` you need to do:
158
-
159
- var asciidoctorRevealjs = require('asciidoctor-reveal.js');
160
- asciidoctorRevealjs.register()
161
- +
162
- This change enables new use cases like embedding a presentation in a React web app.
163
-
164
- * Anchor links generated by {project-name} will change from now on when revealjs_history is set to true (default is false).
165
- This is the consequence of upstream fixing a long standing issue (see https://github.com/hakimel/reveal.js/pull/1230[#1230] and https://github.com/hakimel/reveal.js/pull/2037[#2037]) and us removing a workaround (see {uri-issue}232[#232]).
166
- Explicit anchors are not affected.
167
- * Custom CSS might require adjustments.
168
- Source and listing block are less deeply nested into `div` blocks now.
169
- See {uri-issue}195[#195] and {uri-issue}223[#223].
170
- * The reveal.js `marked` and `markdown` plugins are disabled by default now.
171
- It is unlikely that they could have been used anyway.
172
- See {uri-issue}204[#204].
173
- * Dropped the ability to override the Reveal.JS theme and transitions dynamically with the URL query.
174
- Was not compatible with Reveal.JS 3.x series released 4 years ago.
175
-
176
- Enhancements::
177
- * Easier speaker notes: a `.notes` role that apply to many AsciiDoc blocks (open, sidebar and admonition) ({uri-issue}202[#202])
178
- * Added a role `right` that would apply a `float: right` to any block where it would be assigned ({uri-issue}197[#197], {uri-issue}213[#213], {uri-issue}215[#215])
179
- * Allow the background color of slides to be set using CSS ({uri-issue}16[#16], {uri-issue}220[#220], {uri-issue}226[#226], {uri-issue}229[#229])
180
- * Reveal.js's fragmentInURL option now supported ({uri-issue}206[#206], {uri-issue}214[#214])
181
- * Documentation improvements ({uri-issue}141[#141], {uri-issue}182[#182], {uri-issue}190[#190], {uri-issue}203[#203], {uri-issue}215[#215], {uri-issue}216[#216], {uri-issue}222[#222])
182
- * Support for Asciidoctor.js 1.5.6 and build simplification ({uri-issue}189[#189], {uri-issue}217[#217])
183
- * Support to specify and use reveal.js plugins without modifying {project-name}'s source code ({uri-issue}196[#196], {uri-issue}118[#118], {uri-issue}201[#201], {uri-issue}204[#204])
184
- * Node / Javascript back-end is now loaded on-demand with the `register()` method.
185
- This allows embedding {project-name} into React or any other modern Javascript environment.
186
- ({uri-issue}205[#205], {uri-issue}218[#218], {uri-issue}219[#219])
187
- * `revealjsdir` attribute is set to a more sensible default when running under Node.js ({uri-issue}191[#191], {uri-issue}228[#228])
188
- * Node / Javascript back-end updated to use Asciidoctor.js 1.5.9.
189
- This extension is built with Opal 0.11.99.dev (6703d8d) in order to be compatible.
190
- ({uri-issue}227[#227], {uri-issue}240[#240])
191
-
192
- Compliance::
193
- * AsciiDoc source callout icons now work ({uri-issue}54[#54], {uri-issue}168[#168], {uri-issue}224[#224])
194
- * 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])
195
- * Asciidoctor 2.0 ready ({uri-issue}245[#245])
196
-
197
- Bug Fixes::
198
- * Reveal.js' `stretch` class now works with listing blocks ({uri-issue}195[#195], {uri-issue}223[#223])
199
- * Auto-generated slide IDs with unallowed characters (for revealjs history) now work properly.
200
- Upstream reveal.js fixed a bug in 3.7.0 (https://github.com/hakimel/reveal.js/pull/2037[#2037]) and we removed our broken workaround.
201
- ({uri-issue}192[#192], {uri-issue}232[#232])
202
-
203
- Infrastructure::
204
- * Travis testing prepared for upcoming Asciidoctor 2.0 ({uri-issue}216[#216])
205
- * Travis testing for Ruby 2.6 ({uri-issue}243[#243])
206
-
207
- === Release meta
208
-
209
- * Released on: 2019-02-28
210
- * Released by: Olivier Bilodeau
211
- * Release beer: President's Choice Blonde Brew De-alcoholized Beer (Sober February Successfully Completed!)
212
-
213
- {uri-repo}/releases/tag/v2.0.0[git tag] |
214
- {uri-repo}/compare/v1.1.3...v2.0.0[full diff] |
215
- {uri-repo}/milestone/6[milestone]
216
-
217
- === Credits
218
-
219
- Thanks to the following people who contributed to this release:
220
-
221
- a4z, Dan Allen, Guillaume Grossetie, Harald, Jakub Jirutka, Olivier Bilodeau, stevewillson, Vivien Didelot
222
-
223
-
224
- == 1.1.3 (2018-01-31)
225
-
226
- A repackage of 1.1.2 with a fix for Ruby 2.5 environments
227
-
228
- Bug fixes::
229
- * Worked around a problem in ruby-beautify with the compiled Slim template under Ruby 2.5
230
-
231
- === Release meta
232
-
233
- * Released on: 2018-01-31
234
- * Released by: Olivier Bilodeau
235
- * Release coffee: Santropol Dark Espresso
236
-
237
- {uri-repo}/releases/tag/v1.1.3[git tag] |
238
- {uri-repo}/compare/v1.1.2...v1.1.3[full diff]
239
-
240
- === Credits
241
-
242
- Thanks to the following people who contributed to this release:
243
-
244
- Jakub Jirutka, Olivier Bilodeau
245
-
246
-
247
- == 1.1.2 (2018-01-30)
248
-
249
- NOTE: No packaged version of this release were produced.
250
-
251
- A bugfix release due to a problem rendering tables using the Javascript /
252
- Node.js toolchain.
253
-
254
- Enhancements::
255
- * Documentation improvements ({uri-issue}181[#181])
256
-
257
- Bug fixes::
258
- * Fixed crash with presentations with a table used from Javascript/Node.js setup ({uri-issue}178[#178])
259
-
260
- === Release meta
261
-
262
- * Released on: 2018-01-30
263
- * Released by: Olivier Bilodeau
264
- * Release beer: A sad Belgian Moon in a Smoke Meat joint
265
-
266
- {uri-repo}/releases/tag/v1.1.2[git tag] |
267
- {uri-repo}/compare/v1.1.1...v1.1.2[full diff]
268
-
269
- === Credits
270
-
271
- Thanks to the following people who contributed to this release:
272
-
273
- Guillaume Grossetie, Tobias Placht, Olivier Bilodeau
274
-
275
-
276
- == 1.1.1 (2018-01-03)
277
-
278
- An emergency bugfix release due to a problem in the Ruby Gem package
279
-
280
- Enhancements::
281
- * Documentation improvements ({uri-issue}163[#163], {uri-issue}165[#165], {uri-issue}169[#169], {uri-issue}173[#173], {uri-issue}175[#175])
282
-
283
- Compliance::
284
- * Code listing callouts now work properly ({uri-issue}22[#22], {uri-issue}166[#166], {uri-issue}167[#167])
285
- * More source code listing examples and tests ({uri-issue}163[#163], {uri-issue}170[#170])
286
-
287
- Bug fixes::
288
- * The version 1.1.0 Ruby Gem was broken due to a packaging error ({uri-issue}172[#172])
289
-
290
- === Release meta
291
-
292
- * Released on: 2018-01-03
293
- * Released by: Olivier Bilodeau
294
- * Release beer: Croque-Mort Double IPA, À la fût
295
-
296
- {uri-repo}/releases/tag/v1.1.1[git tag] |
297
- {uri-repo}/compare/v1.1.0...v1.1.1[full diff] |
298
- {uri-repo}/milestone/5[milestone]
299
-
300
- === Credits
301
-
302
- Thanks to the following people who contributed to this release:
303
-
304
- Dietrich Schulten, Olivier Bilodeau
305
-
306
-
307
- == 1.1.0 (2017-12-25) - @obilodeau
308
-
309
- Enhancements::
310
- * Support for Reveal.JS 3.5.0+ ({uri-issue}146[#146], {uri-issue}151[#151])
311
- * Support for Asciidoctor 1.5.6 ({uri-issue}132[#132], {uri-issue}136[#136], {uri-issue}142[#142])
312
- * Support for Asciidoctor.js 1.5.6-preview.4 ({uri-issue}130[#130], {uri-issue}143[#143], {uri-issue}156[#156])
313
- * Compiling slim templates to Ruby allows us to drop Jade templates for Asciidoctor.js users
314
- ({uri-issue}63[#63], {uri-issue}131[#131])
315
- * Documentation polish ({uri-issue}153[#153], {uri-issue}158[#158] and more)
316
-
317
- Compliance::
318
- * Users of Asciidoctor (Ruby) and Asciidoctor.js (Javascript) now run the same set of templates meaning that we achieved feature parity between the two implementations
319
- ({uri-issue}63[#63], {uri-issue}131[#131])
320
-
321
- Bug fixes::
322
- * Reveal.js https://github.com/hakimel/reveal.js/#configuration[history feature] now works.
323
- We are working around Reveal.js' section id character limits.
324
- ({uri-issue}127[#127], {uri-issue}150[#150], https://github.com/hakimel/reveal.js/issues/1346[hakimel/reveal.js#1346])
325
-
326
- Infrastructure::
327
- * https://github.com/asciidoctor/asciidoctor-doctest[Asciidoctor-doctest] integration.
328
- This layer of automated testing should help prevent regressions and improve our development process.
329
- ({uri-issue}92[#92], {uri-issue}116[#116])
330
- * Travis-CI integration to automatically run doctests and examples AsciiDoc conversions
331
- * Travis-CI tests are triggered by changes done in Asciidoctor.
332
- We will detect upstream changes affecting us sooner.
333
- * Smoke tests for our Javascript / Node / Asciidoctor.js toolchain (integrated in Travis-CI also)
334
- * `npm run examples` will convert all examples using the Javascript / Node / Asciidoctor.js toolchain ({uri-issue}149[#149])
335
- * `rake examples:serve` will run a Web server from `examples/` so you can preview rendered examples ({uri-issue}154[#154])
336
-
337
- === Release meta
338
-
339
- {uri-repo}/releases/tag/v1.1.0[git tag] |
340
- {uri-repo}/compare/v1.0.4...v1.1.0[full diff]
341
-
342
- === Credits
343
-
344
- Thanks to the following people who contributed to this release:
345
-
346
- @jirutka, Dan Allen, Guillaume Grossetie, Jacob Aae Mikkelsen, Olivier Bilodeau, Rahul Somasunderam
347
-
348
-
349
- == 1.0.4 (2017-09-27) - @obilodeau
350
-
351
- Bug fixes::
352
- * Dependency problems leading to crashes when used from Asciidoctor.js ({uri-issue}145[#145])
353
-
354
- === Release meta
355
-
356
- {uri-repo}/releases/tag/v1.0.4[git tag] |
357
- {uri-repo}/compare/v1.0.3...v1.0.4[full diff]
358
-
359
- === Credits
360
-
361
- Thanks to the following people who contributed to this release:
362
-
363
- Olivier Bilodeau, Guillaume Grossetie
364
-
365
-
366
- == 1.0.3 (2017-08-28) - @obilodeau
367
-
368
- Enhancements::
369
- * Documentation improvements
370
-
371
- Compliance::
372
- * Added `data-state: title` to the title slide ({uri-issue}123[#123])
373
-
374
- Bug fixes::
375
- * Pinned Asciidoctor version requirement to 1.5.4 to avoid dealing with {uri-issue}132[#132] in the 1.0.x series
376
- * Fixed consistency issues with boolean values handling in revealjs settings ({uri-issue}125[#125])
377
-
378
- === Release meta
379
-
380
- {uri-repo}/releases/tag/v1.0.3[git tag] |
381
- {uri-repo}/compare/v1.0.2...v1.0.3[full diff]
382
-
383
- === Credits
384
-
385
- Thanks to the following people who contributed to this release:
386
-
387
- Dan Allen, nipa, Olivier Bilodeau, Pi3r
388
-
389
-
390
- == 1.0.2 (2016-12-22) - @obilodeau
391
-
392
- Enhancements::
393
- * Ruby back-end is now compiled in Javascript with Opal (#115)
394
- * Documentation improvements
395
-
396
- === Release meta
397
-
398
- {uri-repo}/issues?q=milestone%3A1.0.2[issues resolved] |
399
- {uri-repo}/releases/tag/v1.0.2[git tag] |
400
- {uri-repo}/compare/v1.0.1...v1.0.2[full diff]
401
-
402
- === Credits
403
-
404
- Thanks to the following people who contributed to this release:
405
-
406
- Dan Allen, Guillaume Grossetie, Olivier Bilodeau
407
-
408
-
409
- == 1.0.1 (2016-10-12) - @obilodeau
410
-
411
- Enhancements::
412
- * Documentation: aligned release process for both npm and ruby gems packages
413
- * npm package in sync with ruby gem
414
-
415
- === Release meta
416
-
417
- Released by @obilodeau
418
-
419
- {uri-repo}/issues?q=milestone%3A1.0.1[issues resolved] |
420
- {uri-repo}/releases/tag/v1.0.1[git tag] |
421
- {uri-repo}/compare/v1.0.0...v1.0.1[full diff]
422
-
423
- === Credits
424
-
425
- Thanks to the following people who contributed to this release:
426
-
427
- Olivier Bilodeau
428
-
429
-
430
- == 1.0.0 (2016-10-06) - @obilodeau
431
-
432
- Since this is the first ever "release" of asciidoctor-reveal.js (we used to do continuous improvements w/o releases in the past), this list focuses on the major enhancements introduced over the last few weeks.
433
-
434
- Enhancements::
435
- * Initial release
436
- * Ruby package (#93)
437
- * Node package (#95)
438
- * `:customcss:` attribute for easy per-presentation CSS (#85)
439
- * Video support improvements (#81)
440
- * Reveal.js `data-state` support (#61)
441
- * Subtitle partioning (#70)
442
- * Background image rework (#52)
443
- * `:imagesdir:` properly enforced (#17, #67)
444
-
445
- === Release meta
446
-
447
- Released by @obilodeau
448
-
449
- {uri-repo}/issues?q=milestone%3A1.0.0[issues resolved] |
450
- {uri-repo}/releases/tag/v1.0.0[git tag]
451
-
452
- === Credits
453
-
454
- Thanks to the following people who contributed to this release:
455
-
456
- Alexander Heusingfeld, Andrea Bedini, Antoine Sabot-Durand, Brian Street, Charles Moulliard, Dan Allen, Danny Hyun, Emmanuel Bernard, gtoast, Guillaume Grossetie, Jacob Aae Mikkelsen, Jakub Jirutka, Jozef Skrabo, Julien Grenier, Julien Kirch, kubamarchwicki, lifei, Nico Rikken, nipa, Olivier Bilodeau, Patrick van Dissel, phrix32, Rahman Usta, Robert Panzer, Rob Winch, Thomas and Wendell Smith