Fix guides spec

This commit is contained in:
Rob Winch 2013-11-01 14:21:37 -05:00
parent 2c8946c406
commit f1f3acdf75

View File

@ -1,9 +1,6 @@
apply plugin: 'asciidoctor'
import org.asciidoctor.gradle.*
file("src/asciidoc").eachFileMatch(~/.*\.asc/) { file->
task "asciidoctor-${file.name}"(type: AsciidoctorTask) {
sourceDocumentName = file
asciidoctor {
options = [
eruby: 'erubis',
eruby: 'erubis',
@ -20,17 +17,11 @@ file("src/asciidoc").eachFileMatch(~/.*\.asc/) { file->
revnumber : project.version
]
]
}
}
task asciidoctor {
group = 'Documentation'
description = "Generates the asciidoc for $project.name"
dependsOn tasks.matching { t -> t.name.startsWith('asciidoctor-') }
}
ext.spec = copySpec {
into ('guides') {
from("$buildDir/asciidoctor/dist/html5/")
from(asciidoctor.outputDir)
exclude 'build', 'Guardfile'
}
}