public boolean contains(String haystack, String needle) {
return haystack.contains(needle);
}
Doc Writer
This is an example deck.
This deck teaches something.
We just haven’t decided what that is yet.
Press the s
key to access speaker notes.
public boolean contains(String haystack, String needle) {
return haystack.contains(needle);
}
This page was built by the following command:
$ ./gradlew asciidoctor
You can press b
or .
to blank your current screen.
Hit it again to bring it back.
Press the esc
key to get an overview of your slides.
content from src/docs/asciidoc/subdir/_b.adoc.
content from src/docs/asciidoc/subdir/_c.adoc.
Press the down arrow key to see the next sub-slide.
2.0.10
unsafe
/home/travis/build/asciidoctor/asciidoctor-gradle-examples/asciidoc-to-revealjs-example/src/docs/asciidoc
/home/travis/build/asciidoctor/asciidoctor-gradle-examples/asciidoc-to-revealjs-example/src/docs/asciidoc/example-deck.adoc
./images
1.0.0-SNAPSHOT
../../main/java
plugins {
id 'org.asciidoctor.jvm.gems' version '3.3.0'
id 'org.asciidoctor.jvm.revealjs' version '3.3.0'
}
apply plugin: 'java'
version = '1.0.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
ruby {
gems()
}
}
revealjs {
version = '3.1.0'
templateGitHub {
organisation = 'hakimel'
repository = 'reveal.js'
tag = '3.9.1'
}
}
asciidoctorRevealJs {
sourceDir file("src/docs/asciidoc")
baseDirFollowsSourceFile()
resources {
from("${sourceDir}/images") {
include '**'
into 'images'
}
}
attributes 'build-gradle': file('build.gradle'),
'endpoint-url': 'http://example.org',
'source-highlighter': 'coderay',
'coderay-css': 'style',
'imagesdir': './images',
'toc': 'left',
'icons': 'font',
'setanchors': '',
'idprefix': 'slide-',
'idseparator': '-',
'docinfo': 'shared',
'revealjs_theme': 'black',
'revealjs_transition': 'linear',
'revealjs_history': 'true',
'revealjs_slideNumber': 'true'
}
// alias
task asciidoctor(dependsOn: asciidoctorRevealJs)