-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reveal.js 3.8.0 to 3.9.2 support (#301)
* Added new Reveal.js 3.8 and 3.9.0 options * New syntax-highlight example with reveal.js features including step-by-step highlight * Highlight.js changes for reveal.js 3.8.0: Including default template change * Added all features from Asciidoctor syntax highlight manual to examples * Aligned document template with latest reveal.js index.html * Support for the previewLinks and data-preview-link reveal.js feature * Added window attribute support on links on images at the same time * Unified project name * Added upgrade notes to CHANGELOG * Added reveal.js compatibility matrix to README * More... Monster squash commit because many individual commits were failing tests
- Loading branch information
Showing
39 changed files
with
1,557 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
node_modules/ | ||
npm-debug.log | ||
build/ | ||
/dist/main.js | ||
/dist/ | ||
/asciidoctor-reveal.js-*.tgz | ||
|
||
# ruby stuff | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// .revealjs-features | ||
// This example tests some of reveal.js' fragments features | ||
// :include: //body/script | //div[@class="slides"] | ||
// :header_footer: | ||
= Fragments | ||
:revealjs_history: true | ||
:revealjs_fragmentInURL: true | ||
:customcss: fragments.css | ||
|
||
== Fragments | ||
|
||
[%step] | ||
* Fragments | ||
* Are a reveal.js feature | ||
* Very familiar to Powerpoint users | ||
|
||
== Fragments in URL | ||
|
||
[%step] | ||
* With reveal.js 3.6 | ||
* Fragments | ||
* Can now be displayed in URLs | ||
|
||
== Using data-fragment | ||
|
||
[%step] | ||
* You can now | ||
* Do | ||
* Fancy | ||
* CSS Things | ||
* With Fragments | ||
* See `fragments.css` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@import 'https://fonts.googleapis.com/css?family=Baloo+Bhai'; | ||
|
||
section[data-fragment="2"] p { | ||
font-family: 'Baloo Bhai', cursive; | ||
} | ||
|
||
section[data-fragment="3"] p { | ||
color: black; | ||
flex: 1; | ||
font-size: 2em; | ||
line-height: 1.2; | ||
text-decoration: none; | ||
background-image: linear-gradient(to right, yellow 0, yellow 100%); | ||
background-position: 0 -0.1em; | ||
background-size: 100% 100%; | ||
background-repeat: no-repeat; | ||
transition: background .5s; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// .hash | ||
// Enables reveal.js hash feature which is good to reload in-progress slides and doesn't push to browser history. | ||
// :include: //body/script | //div[@class="slides"] | ||
// :header_footer: | ||
= No History | ||
:backend: revealjs | ||
:revealjs_hash: true | ||
|
||
== First slide | ||
|
||
This Deck | ||
|
||
== Second slide | ||
|
||
You can reload anytime | ||
|
||
== Third slide | ||
|
||
Yet browser history is not spammed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// .links-with-preview | ||
// Demonstration of reveal.js global data-preview-link feature | ||
// :include: //div[@class="slides"] | //body/*[last()] | ||
// :header_footer: | ||
= Links With Preview Tests | ||
:revealjs_previewlinks: True | ||
:imagesdir: images/ | ||
|
||
== Set Globally | ||
|
||
https://en.wikipedia.org/wiki/February_4[Here's a link] | ||
|
||
== Disabled Locally | ||
|
||
https://en.wikipedia.org/wiki/February_4[Link One, preview=false] | ||
|
||
https://en.wikipedia.org/wiki/February_4[Link Two, preview=0] | ||
|
||
https://en.wikipedia.org/wiki/February_4[Link Three, preview=False] | ||
|
||
== Image block with a Link | ||
|
||
image::70s.jpg[link="https://montrehack.ca/"] | ||
|
||
== Image block with a Link Disabled Locally | ||
|
||
image::70s.jpg[link="https://montrehack.ca/", link_preview=false] | ||
|
||
== Inlined Images | ||
|
||
image:70s.jpg[link="https://montrehack.ca/", width=200px] | ||
image:70s.jpg[link="https://montrehack.ca/", width=200px, link_preview=false] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// .links | ||
// Demonstration of reveal.js and AsciiDoc links | ||
// :include: //div[@class="slides"] | ||
// :header_footer: | ||
= Links | ||
:imagesdir: images/ | ||
|
||
== Regular | ||
|
||
https://en.wikipedia.org/wiki/February_4[Link] | ||
|
||
https://en.wikipedia.org/wiki/February_4[In new Window, window="_blank"] | ||
|
||
https://en.wikipedia.org/wiki/February_4[In new Window (alternate syntax)^] | ||
|
||
|
||
== With iFrame Preview Overlay | ||
|
||
https://en.wikipedia.org/wiki/February_4[Link One, preview=true] | ||
|
||
https://en.wikipedia.org/wiki/February_4[Link Two, preview=1] | ||
|
||
https://en.wikipedia.org/wiki/February_4[Link Three, preview=True] | ||
|
||
|
||
== Image Block with a Link | ||
|
||
image::70s.jpg[link="https://montrehack.ca/", window="_blank"] | ||
|
||
|
||
== Image Block with a Link With iFrame Preview | ||
|
||
image::70s.jpg[link="https://montrehack.ca/", link_preview=true] | ||
|
||
|
||
== Inlined Images | ||
|
||
image:70s.jpg[link="https://montrehack.ca/", width=200px] | ||
image:70s.jpg[link="https://montrehack.ca/", width=200px, link_preview=true] |
Oops, something went wrong.