SEC-2349: Convert Reference to Asciidoctor

This commit is contained in:
Rob Winch
2013-10-03 14:15:09 -05:00
parent df5e034fc3
commit 4b43cf3f50
68 changed files with 8255 additions and 12481 deletions

View File

@@ -1,20 +1,21 @@
import org.asciidoctor.gradle.*
file("src/asciidoc").eachFileMatch(~/.*\.asc/) { file->
task "asciidoctor-${file.name}"(type: AsciidoctorTask) {
outputDir = project.file("$buildDir/docs")
sourceDocumentName = file
sourceDocument = file
options = [
eruby: 'erubis',
eruby: 'erubis',
attributes: [
copycss : '',
icons : 'font',
'source-highlighter': 'prettify',
sectanchors : '',
'toc-placement' : 'preamble',
toc: '',
toc2: '',
idprefix: '',
idseparator: '-',
doctype: 'book',
'spring-security-version' : project.version,
revnumber : project.version
]
@@ -30,6 +31,6 @@ task asciidoctor {
ext.spec = copySpec {
into ('guides') {
from("$buildDir/docs/")
from("$buildDir/asciidoctor/dist/html5/")
}
}