Skip to content

Commit

Permalink
Merge pull request #8 from jtama/main
Browse files Browse the repository at this point in the history
Bump asciidoctor-revealjs to 5.2.0
  • Loading branch information
robertpanzer authored Dec 7, 2024
2 parents 32de5b9 + 3d8b779 commit 16dec2e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ To create slides programmatically using the AsciidoctorJ API use the following c
.safe(SafeMode.UNSAFE)
.attributes(
AttributesBuilder.attributes()
.attribute("revealjsdir", "https://cdn.jsdelivr.net/npm/reveal.js@4.3.1")
.attribute("revealjsdir", "https://cdn.jsdelivr.net/npm/reveal.js@4.5.0")
)
.get()
);
Expand All @@ -63,7 +63,7 @@ Using the CLI you can create slides with this call:
----
asciidoctorj --classpath ..asciidoctor-revealjs.jar \
-b revealjs \
-a revealjsdir=https://cdn.jsdelivr.net/npm/reveal.js@4.3.1 \
-a revealjsdir=https://cdn.jsdelivr.net/npm/reveal.js@4.5.0 \
document.adoc
----

Expand All @@ -85,7 +85,7 @@ To create slides using the Asciidoctor Maven Plugin you can use the following pl
</requires>
<attributes>
<revealjsdir>
https://cdn.jsdelivr.net/npm/reveal.js@4.3.1
https://cdn.jsdelivr.net/npm/reveal.js@4.5.0
</revealjsdir>
</attributes>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion asciidoctorj-revealjs/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
properName=AsciidoctorJ Reveal.js
description=AsciidoctorJ RevealJs bundles the Asciidoctor Reveal.js RubyGem (asciidoctor-reveal.js) so it can be loaded into the JVM using JRuby.
version=5.1.0
version=5.2.0
gem_name=asciidoctor-revealjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void should_create_simple_slides() throws IOException {
.safe(SafeMode.UNSAFE)
.attributes(
AttributesBuilder.attributes()
.attribute("revealjsdir", "https://cdn.jsdelivr.net/npm/reveal.js@4.3.1")
.attribute("revealjsdir", "https://cdn.jsdelivr.net/npm/reveal.js@4.5.0")
)
.get()
);
Expand All @@ -56,7 +56,7 @@ public void should_create_simple_slides() throws IOException {
.map(element -> element.attr("href"))
.collect(toList());

assertThat(stylesheets, hasItem("https://cdn.jsdelivr.net/npm/reveal.js@4.3.1/dist/theme/black.css"));
assertThat(stylesheets, hasItem("https://cdn.jsdelivr.net/npm/reveal.js@4.5.0/dist/theme/black.css"));

Element firstChild = doc.body().children().first();
assertThat(firstChild.className(), containsString("reveal"));
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version=5.1.0
version=5.2.0
sourceCompatibility=1.8
targetCompatibility=1.8
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void should_create_simple_slides() throws IOException {
.safe(SafeMode.UNSAFE)
.attributes(
AttributesBuilder.attributes()
.attribute("revealjsdir", "https://cdn.jsdelivr.net/npm/reveal.js@4.3.1")
.attribute("revealjsdir", "https://cdn.jsdelivr.net/npm/reveal.js@4.5.0")
)
.get()
);
Expand All @@ -60,9 +60,9 @@ public void should_create_simple_slides() throws IOException {
.collect(toList());
assertThat(stylesheets,
hasItems(
// "https://cdn.jsdelivr.net/npm/reveal.js@4.3.1/dist/reset.css",
"https://cdn.jsdelivr.net/npm/reveal.js@4.3.1/dist/reveal.css",
"https://cdn.jsdelivr.net/npm/reveal.js@4.3.1/dist/theme/black.css"));
// "https://cdn.jsdelivr.net/npm/reveal.js@4.5.0dist/reset.css",
"https://cdn.jsdelivr.net/npm/reveal.js@4.5.0/dist/reveal.css",
"https://cdn.jsdelivr.net/npm/reveal.js@4.5.0/dist/theme/black.css"));

Element diagramSlide = doc.selectFirst("#diagram");
assertThat(diagramSlide, notNullValue());
Expand Down

0 comments on commit 16dec2e

Please sign in to comment.