forked from jMonkeyEngine/wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (51 loc) · 1.31 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
plugins {
id 'org.asciidoctor.convert' version '1.5.3'
}
apply plugin: 'java'
apply plugin: 'org.asciidoctor.convert'
version = '3.1.0-SNAPSHOT'
asciidoctorj {
version = '1.5.4'
}
asciidoctor {
resources {
from('src/docs/images')
}
resources {
from('src/docs/resources')
}
attributes 'build-gradle': file('build.gradle'),
'sourcedir': project.asciidoctor.sourceDir,
'endpoint-url': 'https://wiki.jmonkeyengine.org',
'source-highlighter' : 'coderay',
'linkcss': 'true',
//'imagesdir':'/images',
'toc':'left',
'icons': 'font',
'setanchors':'true',
'idprefix':'',
'idseparator':'-',
'docinfo1':'true',
'wiki_link_edit_prefix': 'https://github.com/jMonkeyEngine/wiki/edit/master/src/docs/asciidoc',
'wiki_link_create_prefix': 'https://github.com/jMonkeyEngine/wiki/new/master/src/docs/asciidoc',
'orgname':'jMonkeyEngine'
options header_footer: true,
template_dirs: [file('src/templates/slim').absolutePath]
/*
extensions {
block_macro(name: 'iframe') {
parent, target, attributes ->
String content = """<iframe src="${target}"></iframe>""";
createBlock(parent, "pass", [content], attributes, config);
}
}
*/
}
asciidoctor.doLast {
copy {
from 'build/asciidoc/html5'
into 'build/asciidoc/html5'
rename { String fileName -> 'index.html'}
include 'documentation.html'
}
}