mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 23:02:15 +00:00
Fix guides spec
This commit is contained in:
parent
2c8946c406
commit
f1f3acdf75
@ -1,36 +1,27 @@
|
|||||||
|
apply plugin: 'asciidoctor'
|
||||||
|
|
||||||
import org.asciidoctor.gradle.*
|
asciidoctor {
|
||||||
|
options = [
|
||||||
file("src/asciidoc").eachFileMatch(~/.*\.asc/) { file->
|
eruby: 'erubis',
|
||||||
task "asciidoctor-${file.name}"(type: AsciidoctorTask) {
|
eruby: 'erubis',
|
||||||
sourceDocumentName = file
|
attributes: [
|
||||||
options = [
|
copycss : '',
|
||||||
eruby: 'erubis',
|
icons : 'font',
|
||||||
eruby: 'erubis',
|
'source-highlighter': 'prettify',
|
||||||
attributes: [
|
sectanchors : '',
|
||||||
copycss : '',
|
toc2: '',
|
||||||
icons : 'font',
|
idprefix: '',
|
||||||
'source-highlighter': 'prettify',
|
idseparator: '-',
|
||||||
sectanchors : '',
|
doctype: 'book',
|
||||||
toc2: '',
|
'spring-security-version' : project.version,
|
||||||
idprefix: '',
|
revnumber : project.version
|
||||||
idseparator: '-',
|
]
|
||||||
doctype: 'book',
|
]
|
||||||
'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 {
|
ext.spec = copySpec {
|
||||||
into ('guides') {
|
into ('guides') {
|
||||||
from("$buildDir/asciidoctor/dist/html5/")
|
from(asciidoctor.outputDir)
|
||||||
|
exclude 'build', 'Guardfile'
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user