AsciiDoc .adoc 파일을 HTML로 변환하고 Gradle을 사용하고 싶습니다.Asciidoc with Gradle 작업
나는 Gradle을 처음 사용합니다. 나는 https://github.com/asciidoctor/asciidoctor-gradle-plugin 을 발견하고 아래 그렇게하는 것입니다 build.gradle
이지만, Gradle을 내 수준에 당신이 Gradle installed이 있는지 확인, 다음
// 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(".")
}
플러그인 문서와 일반적인 AsciiDoctor 문서를 공부하는 것이 도움이되지 않으면 이미이 플러그인 (Griffon, Groovy 등)을 사용하고있는 다른 빌드를 확인하십시오. –
아마도 Ruby 예제가 도움이 될 것입니다 : [Guardfile] (https://gist.github.com/craibuc/9323879) – craig