asciidoctor task config
This commit is contained in:
parent
f43016cd34
commit
07ec4f208d
|
@ -185,14 +185,11 @@ task renderTopicalGuides(type: AsciidoctorTask, group: 'Documentation') {
|
|||
sourceDir = file( 'src/main/asciidoc/topical' )
|
||||
outputDir = new File("$buildDir/asciidoc/topical/html_single")
|
||||
|
||||
baseDirFollowsSourceDir()
|
||||
|
||||
resources {
|
||||
from('src/main/asciidoc/topical/') {
|
||||
include '**/images/**'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -206,8 +203,6 @@ task renderGettingStartedGuides(type: AsciidoctorTask, group: 'Documentation') {
|
|||
include 'index.adoc'
|
||||
}
|
||||
outputDir = new File("$buildDir/asciidoc/quickstart/html_single")
|
||||
|
||||
baseDirFollowsSourceDir()
|
||||
}
|
||||
|
||||
|
||||
|
@ -236,8 +231,6 @@ task renderUserGuide(type: AsciidoctorTask, group: 'Documentation') {
|
|||
}
|
||||
outputDir = new File("$buildDir/asciidoc/userguide/html_single")
|
||||
|
||||
baseDirFollowsSourceDir()
|
||||
|
||||
attributes linkcss: true,
|
||||
stylesheet: "css/hibernate.css",
|
||||
docinfo: 'private',
|
||||
|
@ -271,8 +264,6 @@ task renderIntegrationGuide(type: AsciidoctorTask, group: 'Documentation') {
|
|||
|
||||
outputDir = new File("$buildDir/asciidoc/integrationguide/html_single")
|
||||
|
||||
baseDirFollowsSourceDir()
|
||||
|
||||
attributes linkcss: true,
|
||||
stylesheet: "css/hibernate.css"
|
||||
|
||||
|
@ -289,6 +280,14 @@ task renderIntegrationGuide(type: AsciidoctorTask, group: 'Documentation') {
|
|||
}
|
||||
}
|
||||
|
||||
tasks.withType(AsciidoctorTask).all {
|
||||
baseDirFollowsSourceDir()
|
||||
outputOptions {
|
||||
separateOutputDirs = false
|
||||
backends 'html5'
|
||||
}
|
||||
}
|
||||
|
||||
// Testing
|
||||
|
||||
test {
|
||||
|
|
Loading…
Reference in New Issue