asciidoctor-revealjs 5.0.0.rc1 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +7 -2
- data/README.adoc +1 -1
- data/asciidoctor-revealjs.gemspec +2 -1
- data/examples/images/sample.svg +27 -0
- data/examples/svg-images-docinfo-revealjs.html +15 -0
- data/examples/svg-images.adoc +41 -0
- data/lib/asciidoctor-revealjs/converter.rb +884 -814
- 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
- metadata +7 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3164360d02dbc7dafab8ac1567d4a790f858a90c6da317528aead0fe1335ecce
|
4
|
+
data.tar.gz: 9740b93e816563985092a5c1e08fef9c6869b48b4021efaadd7c5dff86ee1f4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f524101f147f51b0813eb3403deecfe967f2e68c344be30e2050847722854bdb62da9a149d860cfc8861feca91135ce57261c18c05a654a730dbe2f246a2e850
|
7
|
+
data.tar.gz: c48ab897877a4831d209d724114dec9aa1c68188f9ab8b836db09f231f4bc85768f20275d433a4d301b04ad56639ec4922017bee63026d997aa5d7d1c686a9a1
|
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 2.0.0 requires an unreleased Opal 0.11.99.dev (d136ea8)
|
8
|
+
gem 'opal', :git => 'https://github.com/opal/opal.git', :ref => 'd136ea8'
|
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]
|
@@ -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'
|
@@ -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,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]
|