Example Deck

Doc Writer

Introduction

  • This is an example deck.

  • This deck teaches something.

  • We just haven’t decided what that is yet.

Speaker Notes

Press the s key to access speaker notes.

Source Code

Java code from project
public boolean contains(String haystack, String needle) {
    return haystack.contains(needle);
}

This page was built by the following command:

$ ./gradlew asciidoctor

Blank screen

You can press b or . to blank your current screen.

Hit it again to bring it back.

Overview

Press the esc key to get an overview of your slides.

Including documents from subdir

include::subdir/_b.adoc[]

content from src/docs/asciidoc/subdir/_b.adoc.

include::_c.adoc[]

content from src/docs/asciidoc/subdir/_c.adoc.

Images

sunset

Attributes

Press the down arrow key to see the next sub-slide.

Attributes Part 1

Built-in
asciidoctor-version

2.0.10

safe-mode-name

unsafe

docdir

/home/travis/build/asciidoctor/asciidoctor-gradle-examples/asciidoc-to-revealjs-example/src/docs/asciidoc

docfile

/home/travis/build/asciidoctor/asciidoctor-gradle-examples/asciidoc-to-revealjs-example/src/docs/asciidoc/example-deck.adoc

imagesdir

./images

Attributes Part 2

Custom
revnumber

1.0.0-SNAPSHOT

sourcedir

../../main/java

endpoint-url

http://example.org

build.gradle

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)