1
0
mirror of synced 2026-08-04 17:27:13 +00:00
Files
spring-security/docs/guides/build.gradle
T

36 lines
952 B
Groovy
Raw Permalink Normal View History

2013-10-03 14:15:09 -05:00
import org.asciidoctor.gradle.*
file("src/asciidoc").eachFileMatch(~/.*\.asc/) { file->
task "asciidoctor-${file.name}"(type: AsciidoctorTask) {
2013-10-30 16:56:00 -05:00
sourceDocumentName = file
options = [
2013-10-03 14:15:09 -05:00
eruby: 'erubis',
eruby: 'erubis',
attributes: [
copycss : '',
icons : 'font',
'source-highlighter': 'prettify',
sectanchors : '',
2013-10-03 14:15:09 -05:00
toc2: '',
idprefix: '',
idseparator: '-',
2013-10-03 14:15:09 -05:00
doctype: 'book',
2013-08-09 11:47:04 -05:00
'spring-security-version' : project.version,
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') {
2013-10-03 14:15:09 -05:00
from("$buildDir/asciidoctor/dist/html5/")
}
}