mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 13:53:14 +00:00
Fix guides spec
This commit is contained in:
parent
2c8946c406
commit
f1f3acdf75
@ -1,9 +1,6 @@
|
|||||||
|
apply plugin: 'asciidoctor'
|
||||||
|
|
||||||
import org.asciidoctor.gradle.*
|
asciidoctor {
|
||||||
|
|
||||||
file("src/asciidoc").eachFileMatch(~/.*\.asc/) { file->
|
|
||||||
task "asciidoctor-${file.name}"(type: AsciidoctorTask) {
|
|
||||||
sourceDocumentName = file
|
|
||||||
options = [
|
options = [
|
||||||
eruby: 'erubis',
|
eruby: 'erubis',
|
||||||
eruby: 'erubis',
|
eruby: 'erubis',
|
||||||
@ -21,16 +18,10 @@ file("src/asciidoc").eachFileMatch(~/.*\.asc/) { file->
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
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