From 07ec4f208d32d2cdab40ce27f0731b7bdec8a1ee Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Thu, 5 Aug 2021 10:04:54 -0500 Subject: [PATCH] asciidoctor task config --- documentation/documentation.gradle | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/documentation/documentation.gradle b/documentation/documentation.gradle index 94689fb579..e550c4490f 100644 --- a/documentation/documentation.gradle +++ b/documentation/documentation.gradle @@ -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 {