asciidoctor-revealjs 5.1.0 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -0
- data/asciidoctor-revealjs.gemspec +1 -1
- data/examples/release-5.2.adoc +49 -0
- data/examples/steps.adoc +13 -0
- data/lib/asciidoctor-revealjs/converter.rb +686 -685
- data/lib/asciidoctor-revealjs/highlightjs.rb +7 -1
- data/lib/asciidoctor-revealjs/version.rb +1 -1
- data/templates/colist.html.slim +4 -3
- metadata +11 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 451c358338a13a536e6bd42880f315b7dbd188629c1f5f89fe4a480a6a31048e
|
4
|
+
data.tar.gz: 6c2984f72229dd50c38bf6ef8c61357c0faf906ca8563c586c4eeded3ed35a89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd44d33a8862240fc69f4e1737ed2a796010861028a1b33998b2b35a793a7a71a17b7171059b5faf31418a9fca27eb94eff5bc58b773f9fa7aadb6b2eb7cb0d2
|
7
|
+
data.tar.gz: 1f812c46d9426d55ab8802473050ef52c74ccb668bc8e2ec81ad1d4e7878e5e2518094ee179f778073240cf28809451d4feace83ae2ce528bdb2585bd42d0c16
|
data/Rakefile
CHANGED
@@ -153,6 +153,7 @@ namespace :examples do
|
|
153
153
|
FileUtils.cp 'examples/a11y-dark.css', "#{PUBLIC_DIR}/a11y-dark.css"
|
154
154
|
FileUtils.cp 'examples/release-5.1.html', "#{PUBLIC_DIR}/release-5.1.html"
|
155
155
|
FileUtils.cp 'examples/release-5.1.css', "#{PUBLIC_DIR}/release-5.1.css"
|
156
|
+
FileUtils.cp 'examples/release-5.2.html', "#{PUBLIC_DIR}/release-5.2.html"
|
156
157
|
end
|
157
158
|
end
|
158
159
|
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
|
|
35
35
|
s.add_development_dependency 'rake', '~> 13.0.0'
|
36
36
|
# Overriden in Gemfile
|
37
37
|
#s.add_development_dependency 'asciidoctor-doctest', '= 2.0.0.beta.7'
|
38
|
-
s.add_development_dependency 'minitest', '~> 5.
|
38
|
+
s.add_development_dependency 'minitest', [ '~> 5.24.0', '< 5.25']
|
39
39
|
if RUBY_ENGINE != 'jruby'
|
40
40
|
s.add_development_dependency 'pry', '~> 0.12.0'
|
41
41
|
s.add_development_dependency 'irb'
|
@@ -0,0 +1,49 @@
|
|
1
|
+
= Asciidoctor reveal.js 5.2
|
2
|
+
//:stem:
|
3
|
+
:source-highlighter: highlight.js
|
4
|
+
:highlightjs-theme: a11y-dark.css
|
5
|
+
:highlightjs-languages: asciidoc
|
6
|
+
:icons: font
|
7
|
+
:imagesdir: images/
|
8
|
+
// reveal.js config
|
9
|
+
:customcss: release-5.1.css
|
10
|
+
:revealjs_theme: moon
|
11
|
+
:revealjs_hash: true
|
12
|
+
:revealjs_width: 1080
|
13
|
+
|
14
|
+
== New Features icon:rocket[set=fas]
|
15
|
+
|
16
|
+
== Iterating through callouts
|
17
|
+
[source, javascript]
|
18
|
+
----
|
19
|
+
let a = 2; <1>
|
20
|
+
let b = 3; <2>
|
21
|
+
console.log(a+b); <3>
|
22
|
+
----
|
23
|
+
[%step]
|
24
|
+
<1> It is now possible to iterate through callout lists...
|
25
|
+
<2> using the `%step` attribute...
|
26
|
+
<3> to explain code more easily !
|
27
|
+
|
28
|
+
== Synchronising step-by-step syntax highlighting
|
29
|
+
[.fragment, java, highlight="1|2|3", step=0]
|
30
|
+
----
|
31
|
+
Optional<String> foo();
|
32
|
+
Optional<String> bar();
|
33
|
+
Optional<String> foobar();
|
34
|
+
----
|
35
|
+
[.fragment, data-fragment-index=0]
|
36
|
+
step-by-step syntax highlighting
|
37
|
+
[.fragment, data-fragment-index=1]
|
38
|
+
In combination with data-fragment-index
|
39
|
+
[.fragment, data-fragment-index=2]
|
40
|
+
Allow synchronized fragment display
|
41
|
+
|
42
|
+
[transition=fade,transition-speed=slow]
|
43
|
+
== Learn More!
|
44
|
+
|
45
|
+
* https://github.com/asciidoctor/asciidoctor-reveal.js/[Asciidoctor reveal.js]
|
46
|
+
* https://revealjs.com[reveal.js]
|
47
|
+
* https://github.com/asciidoctor/asciidoctor/[Asciidoctor]
|
48
|
+
* https://asciidoc.org/[What is AsciiDoc?]
|
49
|
+
* https://github.com/asciidoctor/asciidoctor-reveal.js/raw/master/examples/release-5.1.adoc[Source of this presentation (AsciiDoc)]
|
data/examples/steps.adoc
CHANGED
@@ -85,3 +85,16 @@ but in [.step.highlight-red]#rising every time we fall#.
|
|
85
85
|
. [.step]#Protons#
|
86
86
|
. [.step]#Electrons#
|
87
87
|
. [.step]#Neutrons#
|
88
|
+
|
89
|
+
== On a code callout list
|
90
|
+
|
91
|
+
[source, html]
|
92
|
+
----
|
93
|
+
<b>complex code</b> <!--1-->
|
94
|
+
<b>more complex code</b> <!--2-->
|
95
|
+
<b>most complex code</b> <!--3-->
|
96
|
+
----
|
97
|
+
[%step]
|
98
|
+
<1> complex code needs a callout
|
99
|
+
<2> as much as a more complex code
|
100
|
+
<3> but less than the most complex code
|