-
Notifications
You must be signed in to change notification settings - Fork 136
/
build.gradle
58 lines (48 loc) · 1.22 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
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)