asciidoctor-revealjs 4.0.1 → 4.1.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +75 -35
  3. data/Rakefile +18 -3
  4. data/asciidoctor-revealjs.gemspec +1 -1
  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/font-awesome-specific-version.adoc +11 -0
  10. data/examples/font-awesome.adoc +16 -2
  11. data/examples/footnotes.adoc +46 -0
  12. data/examples/fragments.adoc +12 -0
  13. data/examples/grid-layout-3x2.adoc +50 -0
  14. data/examples/grid-layout-docinfo-revealjs.html +1 -1
  15. data/examples/grid-layout.adoc +21 -1
  16. data/examples/images/cute-cat-1.jpg +0 -0
  17. data/examples/images/cute-cat-2.jpg +0 -0
  18. data/examples/images/cute-cat-3.jpg +0 -0
  19. data/examples/images/flock-of-seagulls_daniel-simion.mp3 +0 -0
  20. data/examples/issue-grid-layout-images.adoc +25 -0
  21. data/examples/mathjax-cdn.adoc +21 -0
  22. data/examples/mathjax.adoc +20 -0
  23. data/examples/release-4.0.adoc +2 -5
  24. data/examples/release-4.1.adoc +133 -0
  25. data/examples/release-4.1.css +50 -0
  26. data/examples/revealjs-custom-theme.adoc +10 -0
  27. data/examples/steps.adoc +87 -0
  28. data/examples/text-alignments.adoc +44 -0
  29. data/examples/video.adoc +19 -6
  30. data/lib/asciidoctor-revealjs/converter.rb +754 -647
  31. data/lib/asciidoctor-revealjs/version.rb +1 -1
  32. data/templates/admonition.html.slim +1 -1
  33. data/templates/asciidoctor-compatibility.css +303 -54
  34. data/templates/audio.html.slim +1 -1
  35. data/templates/colist.html.slim +1 -1
  36. data/templates/dlist.html.slim +3 -3
  37. data/templates/document.html.slim +12 -7
  38. data/templates/example.html.slim +1 -1
  39. data/templates/helpers.rb +80 -7
  40. data/templates/image.html.slim +2 -2
  41. data/templates/inline_anchor.html.slim +5 -4
  42. data/templates/inline_button.html.slim +2 -1
  43. data/templates/inline_footnote.html.slim +11 -4
  44. data/templates/inline_image.html.slim +2 -5
  45. data/templates/inline_kbd.html.slim +3 -2
  46. data/templates/inline_menu.html.slim +4 -3
  47. data/templates/inline_quoted.html.slim +13 -21
  48. data/templates/listing.html.slim +14 -9
  49. data/templates/literal.html.slim +1 -1
  50. data/templates/olist.html.slim +2 -2
  51. data/templates/open.html.slim +3 -3
  52. data/templates/paragraph.html.slim +1 -1
  53. data/templates/quote.html.slim +1 -1
  54. data/templates/section.html.slim +18 -1
  55. data/templates/sidebar.html.slim +1 -1
  56. data/templates/stem.html.slim +1 -1
  57. data/templates/table.html.slim +3 -2
  58. data/templates/ulist.html.slim +3 -3
  59. data/templates/verse.html.slim +1 -1
  60. data/templates/video.html.slim +14 -8
  61. metadata +26 -10
  62. data/CHANGELOG.adoc +0 -546
  63. data/HACKING.adoc +0 -412
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c663654cbc023ea219477c04797c5e035037749d2410e37245971c97c1cce3c
4
- data.tar.gz: 4bfd5e51e1e796d41a33475bcb440a67ec77e29d6f36729a4453195f923faf72
3
+ metadata.gz: 6b2343b79440b211359d9b5a8cf73fa259d0c46936b37c1d732da9f5610187f0
4
+ data.tar.gz: 8261031cd8f7a5528a8a4bfc5cd23cecf613f0f66dd6aca1c225de2a9080b4c0
5
5
  SHA512:
6
- metadata.gz: 6734ffe16c6f11c50c903826f8bbeef70b7a859818798fd4a9f4889af11b5b44625d789dccf2d9a11fed8e3c1ad8ae5c7b7447ba11f5fd75bd90499aa85e0c34
7
- data.tar.gz: 27d91a397a3915b0520105854c86b91ec4d7852192b39da7a6d86d271be0b2a2990a8cf06988d8aaf3c1e572d0be3b2cf90653f1ea40f24ba77ea0ceebdeefce
6
+ metadata.gz: 8e823350491fb2ac4ccde6e606a1e5fdceaffb6a7c4bc30bf21c2c8b6d2132052fc0ea17cd2507584dcccb33d48e842b51514c9d433b9afa24bd259649c5bd7f
7
+ data.tar.gz: 9fcfd3e2f9703d1032207127b31e836ffa14a83b56414e646cecf183ef15389ca6fe6d6ebf759254c351aa98535a1db06513f80f5f256f76c421d0b036cbbda6
@@ -18,8 +18,9 @@ endif::[]
18
18
  :uri-project-repo: https://github.com/asciidoctor/asciidoctor-reveal.js
19
19
  :uri-asciidoctor: https://github.com/asciidoctor/asciidoctor
20
20
  :uri-asciidoctorjs: https://github.com/asciidoctor/asciidoctor.js
21
- :uri-revealjs-home: http://lab.hakim.se/reveal-js/
22
- :uri-revealjs-gh: https://github.com/hakimel/reveal.js
21
+ :uri-revealjs-home: https://revealjs.com
22
+ :uri-revealjs-gh: https://github.com/hakimel/reveal.js/blob/v3.9
23
+ :uri-revealjs-doc: {uri-revealjs-gh}/README.md
23
24
  :uri-nodejs-download: https://nodejs.org/en/download/
24
25
  :showcasedir: showcase
25
26
 
@@ -44,27 +45,17 @@ There are four main technology stacks that can convert AsciiDoc into HTML5 / rev
44
45
  ifeval::['{branch}' == 'master']
45
46
  NOTE: You're viewing the documentation for an upcoming release.
46
47
  If you're looking for the documentation for the current release or an older one, please click on the appropriate link below: +
47
- {uri-project-repo}/tree/v3.1.0#readme[3.1.0] (latest release)
48
+ {uri-project-repo}/tree/v4.0.0#readme[4.0.1] (latest from 4.x series)
48
49
  ⁃
49
- {uri-project-repo}/tree/v2.0.1#readme[2.0.1] (latest from 2.x series)
50
+ {uri-project-repo}/tree/v3.1.0#readme[3.1.0] (latest from 3.x series)
50
51
  ⁃
51
- {uri-project-repo}/tree/v1.1.3#readme[1.1.3] (latest from 1.1 series)
52
- ⁃
53
- {uri-project-repo}/tree/maint-1.0.x#readme[1.0.x]
54
- ⁃
55
- {uri-project-repo}/tree/reveal.js-2.x#readme[Unversioned pre-release] (compatible with RevealJS 2.x)
52
+ {uri-project-repo}/tree/reveal.js-2.x#readme[Unversioned pre-release] (compatible with reveal.js 2.x)
56
53
  endif::[]
57
54
 
58
55
 
59
56
  == Ruby Setup
60
57
 
61
- NOTE: asciidoctor-reveal.js is now a Ruby Gem.
62
- To ensure repeatability, we recommend that you manage your presentation projects using bundler.
63
-
64
- For a quick start clone our https://github.com/obilodeau/presentation-revealjs-starter[starter repository] and follow instructions there.
65
-
66
- For more complete instructions, read on.
67
-
58
+ NOTE: To ensure repeatability, we recommend that you manage your presentation projects using http://bundler.io/[bundler].
68
59
 
69
60
  === Prerequisites
70
61
 
@@ -129,6 +120,29 @@ NOTE: For some reason, when you use the system Ruby on Fedora, you also have to
129
120
 
130
121
  TIP: If you are using https://pages.github.com/[GitHub Pages], plan ahead by keeping your source files on `master` branch and all output files on the `gh-pages` branch.
131
122
 
123
+ === Features Unique to the Ruby CLI
124
+
125
+ Starting with 4.0.0 you can specify a set of custom templates to use instead of the ones provided by this project.
126
+ This can help you achieve even more concise AsciiDoc syntax and integration with reveal.js at the cost of more maintenance.
127
+
128
+ To use it, add the following dependencies to your `Gemfile`:
129
+
130
+ gem 'tilt', '~>2.0'
131
+ gem 'slim', '~>4.0'
132
+
133
+ Then install the dependencies with:
134
+
135
+ $ bundle install
136
+
137
+ The feature is activated with the `--template-dir` or `-T` option:
138
+
139
+ $ bundle exec asciidoctor-revealjs -T templates/ CONTENT_FILE.adoc
140
+
141
+ Any individual template file not provided in the directory specified on the command-line will fall back to the template provided by your version of Asciidoctor reveal.js.
142
+ Refer to our https://github.com/asciidoctor/asciidoctor-reveal.js/tree/master/templates[templates] for inspiration.
143
+
144
+ This feature hasn't been ported to the JavaScript CLI (and API) or the standalone executables.
145
+
132
146
 
133
147
  == Node / JavaScript Setup
134
148
 
@@ -301,7 +315,7 @@ A Great Story
301
315
  --
302
316
  ----
303
317
 
304
- In previous snippet we are creating a slide titled Slide One with bullets and another one titled Slide Two with centered text (reveal.js`' default behavior) with {uri-revealjs-gh}#speaker-notes[speaker notes].
318
+ In previous snippet we are creating a slide titled Slide One with bullets and another one titled Slide Two with centered text (reveal.js`' default behavior) with {uri-revealjs-doc}#speaker-notes[speaker notes].
305
319
  Other syntax exists to create speaker notes, see `examples/speaker-notes.adoc`.
306
320
 
307
321
  Starting with Reveal.js 3.5 speaker notes supports configurable layouts:
@@ -388,7 +402,7 @@ NOTE: The `canvas` keyword can be used instead of `background` for the same effe
388
402
  Is very yellow
389
403
  ----
390
404
 
391
- Slide Three applies the attribute {uri-revealjs-gh}#slide-backgrounds[data-background-color] to the `reveal.js` <section> tag.
405
+ Slide Three applies the attribute {uri-revealjs-doc}#slide-backgrounds[data-background-color] to the `reveal.js` <section> tag.
392
406
  Anything accepted by CSS color formats works.
393
407
 
394
408
 
@@ -405,7 +419,7 @@ image::cover.jpg[background, size=cover]
405
419
  This will put `cover.jpg` as the slide's background image.
406
420
  It sets reveal.js`' `data-background-image` attribute.
407
421
  The `size` attribute is also supported.
408
- See the {uri-revealjs-gh}#image-backgrounds[relevant reveal.js documentation] for details.
422
+ See the {uri-revealjs-doc}#image-backgrounds[relevant reveal.js documentation] for details.
409
423
 
410
424
  NOTE: Background images file names are now relative to the `:imagesdir:` attribute if set.
411
425
 
@@ -443,7 +457,7 @@ For example:
443
457
  == Nice background!
444
458
  ----
445
459
 
446
- See {uri-revealjs-gh}#video-backgrounds[the relevant reveal.js documentation] for details.
460
+ See {uri-revealjs-doc}#video-backgrounds[the relevant reveal.js documentation] for details.
447
461
  Note that the `data-` prefix is not required in asciidoc files.
448
462
 
449
463
 
@@ -457,7 +471,7 @@ The background can be replaced with anything a browser can render in an iframe u
457
471
  == a youtube video
458
472
  ----
459
473
 
460
- See {uri-revealjs-gh}#iframe-backgrounds[the relevant reveal.js documentation] for details.
474
+ See {uri-revealjs-doc}#iframe-backgrounds[the relevant reveal.js documentation] for details.
461
475
 
462
476
 
463
477
  === Slide Transitions
@@ -475,7 +489,7 @@ This slide will override the presentation transition and zoom!
475
489
  Choose from three transition speeds: default, fast or slow!
476
490
  ----
477
491
 
478
- See {uri-revealjs-gh}#slide-transitions[the relevant reveal.js documentation] for details.
492
+ See {uri-revealjs-doc}#slide-transitions[the relevant reveal.js documentation] for details.
479
493
 
480
494
 
481
495
  === Fragments
@@ -492,9 +506,9 @@ See {uri-revealjs-gh}#slide-transitions[the relevant reveal.js documentation] fo
492
506
  ----
493
507
 
494
508
  Slide Four has bullets that are revealed one after the other.
495
- This is what `reveal.js` calls http://lab.hakim.se/reveal-js/#/fragments[fragments].
509
+ This is what `reveal.js` calls {uri-revealjs-home}/fragments[fragments].
496
510
  Applying the step option or role on a list (`[%step]` or `[.step]`) will do the trick.
497
- Here is {uri-revealjs-gh}#fragments[the relevant reveal.js
511
+ Here is {uri-revealjs-doc}#fragments[the relevant reveal.js
498
512
  documentation] on the topic.
499
513
  Note that only `fade-in` is supported for lists at the moment.
500
514
 
@@ -510,7 +524,7 @@ To apply that class to block simply use asciidoctor's class assignment:
510
524
 
511
525
  [.stretch]
512
526
 
513
- See {uri-revealjs-gh}#stretching-elements[reveal.js documentation on stretching elements].
527
+ See {uri-revealjs-doc}#stretching-elements[reveal.js documentation on stretching elements].
514
528
 
515
529
 
516
530
  === Videos
@@ -543,7 +557,7 @@ You can activate Highlight.js syntax highlighting (disabled by default) by setti
543
557
  ----
544
558
 
545
559
  [NOTE]
546
- ----
560
+ ====
547
561
  By default, we are using a prebuilt version of Highlight.js with 34 commonly used languages hosted on https://cdnjs.com/[cdnjs].
548
562
  You can load additionnal languages using the `:highlightjs-languages:` attribute:
549
563
 
@@ -559,7 +573,7 @@ You can also load Highlight.js from a custom base directory (or remote URL) usin
559
573
  :highlightjsdir: highlight
560
574
  // load from jsdelivr CDN
561
575
  //:highlightjsdir: https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.0/build
562
- ----
576
+ ====
563
577
 
564
578
  Once enabled, you can write code blocks as usual:
565
579
 
@@ -612,7 +626,7 @@ This is a vertical subslide
612
626
 
613
627
  Slide Six uses the vertical slide feature of `reveal.js`.
614
628
  Slide Six.One will be rendered vertically below Slide Six.
615
- Here is {uri-revealjs-gh}#markup[the relevant reveal.js
629
+ Here is {uri-revealjs-doc}#markup[the relevant reveal.js
616
630
  documentation] on that topic.
617
631
 
618
632
  === Columns layout
@@ -713,6 +727,32 @@ Content can be centered by adding the `is-vcentered` class to the slide.
713
727
  image::large-image.png[]
714
728
  ....
715
729
 
730
+ Text alignment of columns is also supported.
731
+ Text content on individual columns can be aligned with `has-text-left`, `has-text-right` and `has-text-justified` CSS classes.
732
+
733
+ [source, asciidoc]
734
+ ....
735
+ [.columns]
736
+ == Column Text Alignment
737
+
738
+ [.column.has-text-left]
739
+ --
740
+ Something Short
741
+
742
+ Something So Long That We Need It Aligned
743
+ --
744
+
745
+ [.column.has-text-justified]
746
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
747
+
748
+ [.column.has-text-right]
749
+ --
750
+ Something Short
751
+
752
+ Something So Long That We Need It Aligned
753
+ --
754
+ ....
755
+
716
756
 
717
757
  === Asciidoctor reveal.js specific roles
718
758
 
@@ -769,7 +809,7 @@ title that look like this: `:name: value`.
769
809
  This converter supports changing the color, image, video, iframe and
770
810
  transitions of the title slide.
771
811
 
772
- Read {uri-revealjs-gh}#slide-backgrounds[the relevant reveal.js documentation] to understand what attributes need to be set.
812
+ Read {uri-revealjs-doc}#slide-backgrounds[the relevant reveal.js documentation] to understand what attributes need to be set.
773
813
  Keep in mind that for title slides you must replace `data-` with `title-slide-`.
774
814
 
775
815
  ifeval::[{safe-mode-level} >= 20]
@@ -852,7 +892,7 @@ If the `:customcss:` attribute value is empty then `asciidoctor-revealjs.css` is
852
892
 
853
893
  === Slide state
854
894
 
855
- Reveal.js supports a {uri-revealjs-gh}#slide-states[data-state] tag that can be added on slides which gets rendered into `<section>` tags.
895
+ Reveal.js supports a {uri-revealjs-doc}#slide-states[data-state] tag that can be added on slides which gets rendered into `<section>` tags.
856
896
  In AsciiDoc the `data-state` can be applied to a slide by adding a state attribute to a section like this:
857
897
 
858
898
  [source, asciidoc]
@@ -945,7 +985,7 @@ NOTE: Default settings are based on `reveal.js` default settings.
945
985
 
946
986
  |:revealjs_theme:
947
987
  |beige, *black*, league, night, serif, simple, sky, solarized, white
948
- |Chooses one of reveal.js`' {uri-revealjs-gh}#theming[built-in themes].
988
+ |Chooses one of reveal.js`' {uri-revealjs-doc}#theming[built-in themes].
949
989
 
950
990
  |:revealjs_customtheme:
951
991
  |<file\|URL>
@@ -1037,7 +1077,7 @@ print:: only show slide numbers when printing to PDF
1037
1077
 
1038
1078
  |:revealjs_navigationMode:
1039
1079
  |*default*, linear, grid
1040
- |See https://github.com/hakimel/reveal.js/#navigation-mode for details
1080
+ |See {uri-revealjs-doc}#navigation-mode for details
1041
1081
 
1042
1082
  |:revealjs_shuffle:
1043
1083
  |true, *false*
@@ -1212,14 +1252,14 @@ Defaults to *1*
1212
1252
 
1213
1253
  If you want to build a custom theme or customize an existing one you should
1214
1254
  look at the
1215
- {uri-revealjs-gh}/blob/master/css/theme/README.md[reveal.js
1255
+ {uri-revealjs-gh}/css/theme/README.md[reveal.js
1216
1256
  theme documentation] and use the `revealjs_customtheme` AsciiDoc attribute to
1217
1257
  activate it.
1218
1258
 
1219
1259
 
1220
1260
  === PDF Export
1221
1261
 
1222
- Follow https://github.com/hakimel/reveal.js#pdf-export[reveal.js' documentation] for PDF export.
1262
+ Follow {uri-revealjs-doc}#pdf-export[reveal.js' documentation] for PDF export.
1223
1263
  We would add that we have successfully used PDF export without the requirement of a Web server.
1224
1264
 
1225
1265
 
@@ -1253,7 +1293,7 @@ Additional reveal.js plugins can be installed and activated using AsciiDoc attri
1253
1293
 
1254
1294
  Looking at the example provided in the repository will provide guidance: link:examples/revealjs-plugins.adoc[AsciiDoc source], link:examples/revealjs-plugins.js[Plugin Loader], link:examples/revealjs-plugins-conf.js[Plugin Configuration].
1255
1295
 
1256
- Read {uri-revealjs-gh}#dependencies[the relevant reveal.js documentation] to understand more about reveal.js plugins.
1296
+ Read {uri-revealjs-doc}#dependencies[the relevant reveal.js documentation] to understand more about reveal.js plugins.
1257
1297
  A {uri-revealjs-gh}/wiki/Plugins,-Tools-and-Hardware[list of existing reveal.js plugins] is also maintained upstream.
1258
1298
 
1259
1299
 
data/Rakefile CHANGED
@@ -10,6 +10,7 @@ CONVERTER_FILE = 'lib/asciidoctor-revealjs/converter.rb'
10
10
  JS_FILE = 'build/asciidoctor-reveal.js'
11
11
  DIST_FILE = 'dist/main.js'
12
12
  TEMPLATES_DIR = 'templates'
13
+ PUBLIC_DIR = 'public'
13
14
 
14
15
  file CONVERTER_FILE => FileList["#{TEMPLATES_DIR}/*"] do
15
16
  build_converter :fast
@@ -53,6 +54,7 @@ task :build => 'build:converter'
53
54
 
54
55
  task :clean do
55
56
  rm_rf CONVERTER_FILE
57
+ rm_rf PUBLIC_DIR
56
58
  end
57
59
 
58
60
  def build_converter(mode = :pretty)
@@ -112,7 +114,7 @@ end
112
114
  namespace :examples do
113
115
  desc 'Converts all the test slides into fully working examples that you can look in a browser'
114
116
  # converted slides will be put in examples/ directory
115
- task :convert do
117
+ task :convert => 'build:converter' do
116
118
  require 'slim-htag'
117
119
  require_relative 'lib/asciidoctor-revealjs'
118
120
  Dir.glob('examples/*.adoc') do |_file|
@@ -120,8 +122,7 @@ namespace :examples do
120
122
  out = Asciidoctor.convert_file _file,
121
123
  :safe => 'safe',
122
124
  :backend => 'revealjs',
123
- :base_dir => 'examples',
124
- :template_dir => 'templates'
125
+ :base_dir => 'examples'
125
126
  if out.instance_of? Asciidoctor::Document
126
127
  puts "✔️".green
127
128
  else
@@ -137,6 +138,20 @@ namespace :examples do
137
138
  `ruby -run -e httpd . -p 5000 -b 127.0.0.1`
138
139
  end
139
140
  end
141
+
142
+ task :publish do
143
+ FileUtils.rm_rf PUBLIC_DIR
144
+ Dir.mkdir PUBLIC_DIR
145
+ Dir.mkdir "#{PUBLIC_DIR}/reveal.js"
146
+ FileUtils.cp 'src/index.html', "#{PUBLIC_DIR}/index.html"
147
+ FileUtils.cp_r 'node_modules/reveal.js/', "#{PUBLIC_DIR}"
148
+ FileUtils.cp_r 'examples/images/', "#{PUBLIC_DIR}"
149
+ FileUtils.cp 'examples/release-4.0.html', "#{PUBLIC_DIR}/release-4.0.html"
150
+ FileUtils.cp 'examples/release-4.0.css', "#{PUBLIC_DIR}/release-4.0.css"
151
+ FileUtils.cp 'examples/release-4.1.html', "#{PUBLIC_DIR}/release-4.1.html"
152
+ FileUtils.cp 'examples/release-4.1.css', "#{PUBLIC_DIR}/release-4.1.css"
153
+ FileUtils.cp 'examples/a11y-dark.css', "#{PUBLIC_DIR}/a11y-dark.css"
154
+ end
140
155
  end
141
156
 
142
157
  task 'test' => 'doctest'
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
35
35
  s.add_runtime_dependency 'concurrent-ruby', '~> 1.0'
36
36
 
37
37
  s.add_development_dependency 'rake', '~> 13.0.0'
38
- s.add_development_dependency 'asciidoctor-doctest', '= 2.0.0.beta.5'
38
+ s.add_development_dependency 'asciidoctor-doctest', '= 2.0.0.beta.7'
39
39
  s.add_development_dependency 'minitest', '~> 5.14'
40
40
  if RUBY_ENGINE != 'jruby'
41
41
  s.add_development_dependency 'pry', '~> 0.12.0'
@@ -0,0 +1,99 @@
1
+ /* a11y-dark theme */
2
+ /* Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css */
3
+ /* @author: ericwbailey */
4
+
5
+ /* Comment */
6
+ .hljs-comment,
7
+ .hljs-quote {
8
+ color: #d4d0ab;
9
+ }
10
+
11
+ /* Red */
12
+ .hljs-variable,
13
+ .hljs-template-variable,
14
+ .hljs-tag,
15
+ .hljs-name,
16
+ .hljs-selector-id,
17
+ .hljs-selector-class,
18
+ .hljs-regexp,
19
+ .hljs-deletion {
20
+ color: #ffa07a;
21
+ }
22
+
23
+ /* Orange */
24
+ .hljs-number,
25
+ .hljs-built_in,
26
+ .hljs-builtin-name,
27
+ .hljs-literal,
28
+ .hljs-type,
29
+ .hljs-params,
30
+ .hljs-meta,
31
+ .hljs-link {
32
+ color: #f5ab35;
33
+ }
34
+
35
+ /* Yellow */
36
+ .hljs-attribute {
37
+ color: #ffd700;
38
+ }
39
+
40
+ /* Green */
41
+ .hljs-string,
42
+ .hljs-symbol,
43
+ .hljs-bullet,
44
+ .hljs-addition {
45
+ color: #abe338;
46
+ }
47
+
48
+ /* Blue */
49
+ .hljs-title,
50
+ .hljs-section {
51
+ color: #32aaee;
52
+ }
53
+
54
+ /* Purple */
55
+ .hljs-keyword,
56
+ .hljs-selector-tag {
57
+ color: #dcc6e0;
58
+ }
59
+
60
+ .hljs {
61
+ display: block;
62
+ overflow-x: auto;
63
+ background: #2b2b2b;
64
+ color: #f8f8f2;
65
+ padding: 0.5em;
66
+ }
67
+
68
+ .hljs-emphasis {
69
+ font-style: italic;
70
+ }
71
+
72
+ .hljs-strong {
73
+ font-weight: bold;
74
+ }
75
+
76
+ @media screen and (-ms-high-contrast: active) {
77
+ .hljs-addition,
78
+ .hljs-attribute,
79
+ .hljs-built_in,
80
+ .hljs-builtin-name,
81
+ .hljs-bullet,
82
+ .hljs-comment,
83
+ .hljs-link,
84
+ .hljs-literal,
85
+ .hljs-meta,
86
+ .hljs-number,
87
+ .hljs-params,
88
+ .hljs-string,
89
+ .hljs-symbol,
90
+ .hljs-type,
91
+ .hljs-quote {
92
+ color: highlight;
93
+ }
94
+
95
+ .hljs-keyword,
96
+ .hljs-selector-tag {
97
+ font-weight: bold;
98
+ }
99
+ }
@@ -0,0 +1,22 @@
1
+ = Autoslide!
2
+ // automatically proceed to the next slide after 5 seconds
3
+ :revealjs_autoSlide: 5000
4
+
5
+ == Slide 0
6
+
7
+ I can do it in 5 seconds!
8
+
9
+ // on this slide we need 10 seconds
10
+ [autoslide=10000]
11
+ == Slide 1
12
+
13
+ All things considered, let's try again in 10 seconds.
14
+
15
+ [autoslide=1000]
16
+ == Slide 2
17
+
18
+ Don't blink or you'll miss me :)
19
+
20
+ == Slide 3
21
+
22
+ (: