asciidoctor-revealjs 5.0.0.rc1 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -2
- data/README.adoc +1 -1
- data/Rakefile +2 -0
- data/asciidoctor-revealjs.gemspec +3 -2
- data/examples/images/sample.svg +27 -0
- data/examples/release-5.1.adoc +43 -0
- data/examples/release-5.1.css +7 -0
- data/examples/svg-images-docinfo-revealjs.html +15 -0
- data/examples/svg-images.adoc +41 -0
- data/lib/asciidoctor-revealjs/converter.rb +984 -917
- data/lib/asciidoctor-revealjs/version.rb +1 -1
- data/templates/helpers.rb +105 -1
- data/templates/image.html.slim +1 -16
- data/templates/inline_image.html.slim +1 -20
- data/templates/section.html.slim +1 -0
- metadata +11 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 418e03d241a9ea50eebe369b1c3a15ea040b31a688f349bfd249b58a20c0e28d
|
4
|
+
data.tar.gz: 6cd6ff93ea1c7cb5578689e7db029f9a5737bc8df482f98fb32003d520fce9eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0eff544965c64970c02eafb495bdf24ea599f7d22c46d0f3d1ddddb6773aa39eaccf070a1de4094ec5213a2a1849c4ebbcb8b73f4e5073af2150ccbdc3b1294
|
7
|
+
data.tar.gz: 5118ae670cbf448b9a4283d27d5dc4afa6f211085c7aa086043b5ac9accaa9a9141fe19c8fe2a46cdca8a980526f7c2c22e0601c69e229c34549ce32524541e6
|
data/Gemfile
CHANGED
@@ -2,5 +2,10 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in asciidoctor-revealjs.gemspec
|
4
4
|
gemspec
|
5
|
-
|
6
|
-
|
5
|
+
|
6
|
+
group :development do
|
7
|
+
# Asciidoctor.js 3.0.0 requires Opal 1.7.3
|
8
|
+
gem 'opal', '1.7.3'
|
9
|
+
# Asciidoctor Doctest based on Nokogiri 1.13
|
10
|
+
gem 'asciidoctor-doctest', git: 'https://github.com/ggrossetie/asciidoctor-doctest.git', :ref => 'c2cba5240'
|
11
|
+
end
|
data/README.adoc
CHANGED
@@ -22,7 +22,7 @@ endif::[]
|
|
22
22
|
:url-documentation-site: https://docs.asciidoctor.org/reveal.js-converter/latest/
|
23
23
|
|
24
24
|
ifdef::env-github[]
|
25
|
-
image:https://
|
25
|
+
image:https://github.com/asciidoctor/asciidoctor-reveal.js/actions/workflows/ci.yml/badge.svg[Build Status,link=https://github.com/asciidoctor/asciidoctor-reveal.js/actions/workflows/ci.yml]
|
26
26
|
image:http://img.shields.io/gem/v/asciidoctor-revealjs.svg[gem, link=https://rubygems.org/gems/asciidoctor-revealjs]
|
27
27
|
image:http://img.shields.io/npm/v/@asciidoctor/reveal.js.svg[npm, link=https://www.npmjs.org/package/@asciidoctor/reveal.js]
|
28
28
|
image:https://api.netlify.com/api/v1/badges/facd68e7-9337-4b83-bcac-7262720a6915/deploy-status[Netlify Status, link=https://app.netlify.com/sites/asciidoctor-revealjs-examples/deploys]
|
data/Rakefile
CHANGED
@@ -151,6 +151,8 @@ namespace :examples do
|
|
151
151
|
FileUtils.cp 'examples/release-4.1.html', "#{PUBLIC_DIR}/release-4.1.html"
|
152
152
|
FileUtils.cp 'examples/release-4.1.css', "#{PUBLIC_DIR}/release-4.1.css"
|
153
153
|
FileUtils.cp 'examples/a11y-dark.css', "#{PUBLIC_DIR}/a11y-dark.css"
|
154
|
+
FileUtils.cp 'examples/release-5.1.html', "#{PUBLIC_DIR}/release-5.1.html"
|
155
|
+
FileUtils.cp 'examples/release-5.1.css', "#{PUBLIC_DIR}/release-5.1.css"
|
154
156
|
end
|
155
157
|
end
|
156
158
|
|
@@ -33,7 +33,8 @@ Gem::Specification.new do |s|
|
|
33
33
|
s.add_runtime_dependency 'asciidoctor', ['>= 2.0.0', '< 3.0.0']
|
34
34
|
|
35
35
|
s.add_development_dependency 'rake', '~> 13.0.0'
|
36
|
-
|
36
|
+
# Overriden in Gemfile
|
37
|
+
#s.add_development_dependency 'asciidoctor-doctest', '= 2.0.0.beta.7'
|
37
38
|
s.add_development_dependency 'minitest', '~> 5.14'
|
38
39
|
if RUBY_ENGINE != 'jruby'
|
39
40
|
s.add_development_dependency 'pry', '~> 0.12.0'
|
@@ -42,7 +43,7 @@ Gem::Specification.new do |s|
|
|
42
43
|
s.add_development_dependency 'pygments.rb'
|
43
44
|
end
|
44
45
|
s.add_development_dependency 'colorize'
|
45
|
-
s.add_development_dependency 'asciidoctor-templates-compiler', '~> 0.
|
46
|
+
s.add_development_dependency 'asciidoctor-templates-compiler', '~> 0.7.0'
|
46
47
|
s.add_development_dependency 'slim', '~> 3.0.6'
|
47
48
|
s.add_development_dependency 'slim-htag', '~> 0.1.0'
|
48
49
|
s.add_development_dependency 'rouge'
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 84.56 24.23" class="thumb">
|
2
|
+
<style>
|
3
|
+
.rect-0 {
|
4
|
+
fill:crimson;
|
5
|
+
}
|
6
|
+
.rect-0:hover {
|
7
|
+
fill:DarkRed
|
8
|
+
}
|
9
|
+
.ellipse-0 {
|
10
|
+
fill: SpringGreen;
|
11
|
+
}
|
12
|
+
.ellipse-0:hover {
|
13
|
+
fill: ForestGreen;
|
14
|
+
}
|
15
|
+
.path-0 {
|
16
|
+
fill:Aquamarine;
|
17
|
+
}
|
18
|
+
.path-0:hover {
|
19
|
+
fill: LightSeaGreen;
|
20
|
+
}
|
21
|
+
</style>
|
22
|
+
<g transform="translate(-10.472322,-8.3036645)">
|
23
|
+
<rect width="15.5" height="13.61" x="10.77" y="12.76" class="rect-0"/>
|
24
|
+
<ellipse cx="48.95" cy="20.23" rx="10.02" ry="9.07" class="ellipse-0"/>
|
25
|
+
<path d="m87.02 31.91-6.09-5.25-7.78 2.04 3.11-7.42-4.34-6.77 8.01 0.67 5.09-6.22 1.84 7.83 7.49 2.92-6.88 4.17z" class="path-0"/>
|
26
|
+
</g>
|
27
|
+
</svg>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
= Asciidoctor reveal.js 5.1
|
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
|
+
[background-gradient="linear-gradient(to bottom, #002b36, #00b4e0)"]
|
17
|
+
== Gradient slide backgrounds
|
18
|
+
|
19
|
+
[.big-fish]
|
20
|
+
🐟
|
21
|
+
|
22
|
+
[background-gradient="radial-gradient(#002b36, #00b4e0)"]
|
23
|
+
=== Radial gradient
|
24
|
+
|
25
|
+
[.big-fish]
|
26
|
+
🐳
|
27
|
+
|
28
|
+
== Typesetting Libraries
|
29
|
+
|
30
|
+
[latexmath]
|
31
|
+
++++
|
32
|
+
\lim_{n \to \infty}\frac{n}{\sqrt[n]{n!}} = {\large e}
|
33
|
+
++++
|
34
|
+
|
35
|
+
|
36
|
+
[transition=fade,transition-speed=slow]
|
37
|
+
== Learn More!
|
38
|
+
|
39
|
+
* https://github.com/asciidoctor/asciidoctor-reveal.js/[Asciidoctor reveal.js]
|
40
|
+
* https://revealjs.com[reveal.js]
|
41
|
+
* https://github.com/asciidoctor/asciidoctor/[Asciidoctor]
|
42
|
+
* https://asciidoc.org/[What is AsciiDoc?]
|
43
|
+
* https://github.com/asciidoctor/asciidoctor-reveal.js/raw/master/examples/release-5.1.adoc[Source of this presentation (AsciiDoc)]
|
@@ -0,0 +1,41 @@
|
|
1
|
+
= SVG Images
|
2
|
+
:imagesdir: images/
|
3
|
+
:docinfo: private
|
4
|
+
|
5
|
+
== Options for SVG images
|
6
|
+
|
7
|
+
When the image target is an SVG, the `options` attribute (often abbreviated as `opts`) on the macro accepts one of the following values to control how the SVG is referenced:
|
8
|
+
|
9
|
+
* _none_ (default)
|
10
|
+
* `interactive`
|
11
|
+
* `inline`
|
12
|
+
|
13
|
+
The following slide demonstrates the impact these options have.
|
14
|
+
|
15
|
+
== None (default)
|
16
|
+
|
17
|
+
Observe that the SVG does not respond to the hover event.
|
18
|
+
|
19
|
+
[literal]
|
20
|
+
image::sample.svg[Static,300]
|
21
|
+
|
22
|
+
image::sample.svg[Static,300]
|
23
|
+
|
24
|
+
== Interactive
|
25
|
+
|
26
|
+
Observe that the color changes when hovering over the SVG.
|
27
|
+
|
28
|
+
[literal]
|
29
|
+
image::sample.svg[Interactive,300,opts=interactive]
|
30
|
+
|
31
|
+
image::sample.svg[Interactive,300,opts=interactive]
|
32
|
+
|
33
|
+
== Inline
|
34
|
+
|
35
|
+
Observe that the color changes when hovering over the SVG.
|
36
|
+
The SVG also inherits CSS from the document stylesheets.
|
37
|
+
|
38
|
+
[literal]
|
39
|
+
image::sample.svg[Embedded,300,opts=inline]
|
40
|
+
|
41
|
+
image::sample.svg[Embedded,300,opts=inline]
|