forked from melix/ast-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
43 lines (35 loc) · 854 Bytes
/
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
buildscript {
repositories {
jcenter()
maven {
name 'Bintray Asciidoctor repo'
url 'http://dl.bintray.com/content/aalmiray/asciidoctor'
}
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:0.7.0'
}
}
apply plugin: 'asciidoctor'
apply plugin:'idea'
repositories {
mavenCentral()
}
asciidoctor {
sourceDir = file('docs/src')
options = [
attributes: [
'source-highlighter': 'prettify',
icons : 'font',
toc2: '',
'linkcss!': '',
encoding: 'utf-8'
]
]
outputDir = file('docs/gen')
}
clean.dependsOn cleanAsciidoctor
task publish(type: GradleBuild) {
buildFile = 'publish.gradle'
tasks = ['publishGhPages']
}