我想将一些AsciiDoc .adoc 文件转换为 HTML 并为此使用 Gradle。
我是 Gradle 的新手。我找到了https://github.com/asciidoctor/asciidoctor-gradle-plugin
和下面是build.gradle
即将做到这一点,但我的 Gradle 水平我不知道下一步该做什么
// https://github.com/asciidoctor/asciidoctor-gradle-plugin
buildscript {
repositories {
maven {
name 'Bintray Asciidoctor repo'
url 'http://dl.bintray.com/content/aalmiray/asciidoctor'
}
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:0.7.0'
}
}
apply plugin: 'asciidoctor'
// append below the line: apply plugin: 'asciidoctor'
asciidoctor {
outputDir = new File("$buildDir/docs")
options = [
eruby: 'erubis',
attributes: [
'source-highlighter': 'coderay',
toc: '',
idprefix: '',
idseparator: '-'
]
]
//+
//sourceDir = new File(".")
}