-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (56 loc) · 1.45 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
plugins {
id 'org.asciidoctor.jvm.convert' version '2.2.0'
id 'org.asciidoctor.jvm.revealjs' version '2.2.0'
id 'org.asciidoctor.jvm.gems' version '2.2.0'
id 'com.github.jruby-gradle.base' version '1.4.0'
}
apply plugin: 'java'
apply plugin: 'idea'
repositories {
maven { url 'http://rubygems-proxy.torquebox.org/releases' }
}
revealjsPlugins {
github 'rajgoel', {
organisation = 'rajgoel'
repository = 'reveal.js-plugins'
branch = 'master'
}
}
asciidoctorRevealJs {
sourceDir 'src/docs/asciidoc'
sources {
include 'index.adoc'
}
resources {
from (sourceDir) {
include 'images/**'
include 'css/**'
}
}
revealjsOptions {
backgroundTransition = "none"
progressBar = false
slideNumber = false
}
toggleBuiltinPlugin 'pdf', true
toggleBuiltinPlugin 'notes', false
}
asciidoctorj {
version = '1.6.2'
attributes([
'sourcedir': project.sourceSets.main.java.srcDirs[0],
'source-highlighter': 'highlightjs',
'imagesdir': './images',
'toc': 'left',
'icons': 'font',
'setanchors': '',
'idprefix': 'slide-',
'idseparator': '-',
'docinfo1': '',
'revealjs_progress': 'false',
'revealjs_transition': 'fade',
'revealjs_backgroundTransition': 'none',
'revealjs_width': '1024',
'revealjs_history': 'true'
])
}