asciidoctor task config

This commit is contained in:
Steve Ebersole 2021-08-05 10:04:54 -05:00
parent f43016cd34
commit 07ec4f208d
1 changed files with 8 additions and 9 deletions

View File

@ -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 {