I want to convert some AsciiDoc .adoc file into HTML and use Gradle for that.
I am new to Gradle. I have found https://github.com/asciidoctor/asciidoctor-gradle-plugin
and below is build.gradle
that is about to do that, but with my level of Gradle I don't know what to do next
// 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(".")
}