From b45e921b5c92ffff4a672ed6792cc4f6a10628ac Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 26 Jun 2018 10:49:57 +0200 Subject: [PATCH] HHH-12732 Only generate the main document for each guide --- documentation/documentation.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/documentation/documentation.gradle b/documentation/documentation.gradle index 42cc151f77..f760c032bf 100644 --- a/documentation/documentation.gradle +++ b/documentation/documentation.gradle @@ -180,6 +180,9 @@ task renderTopicalGuides(type: AsciidoctorTask, group: 'Documentation') { task renderGettingStartedGuides(type: AsciidoctorTask, group: 'Documentation') { description = 'Renders the Getting Started Guides (quick starts) in HTML format using Asciidoctor.' sourceDir = file( 'src/main/asciidoc/quickstart/guides' ) + sources { + include 'index.adoc' + } outputDir = new File("$buildDir/asciidoc/quickstart/html_single") backends "html5" separateOutputDirs false @@ -209,6 +212,9 @@ renderGettingStartedGuides.dependsOn buildTutorialZip task renderMappingGuide(type: AsciidoctorTask, group: 'Documentation') { description = 'Renders the Mapping Guides in HTML format using Asciidoctor.' sourceDir = file( 'src/main/asciidoc/mapping' ) + sources { + include 'index.adoc' + } outputDir = new File("$buildDir/asciidoc/mapping/html") backends "html5" separateOutputDirs false @@ -228,6 +234,9 @@ task renderMappingGuide(type: AsciidoctorTask, group: 'Documentation') { task renderUserGuide(type: AsciidoctorTask, group: 'Documentation') { description = 'Renders the User Guides in HTML format using Asciidoctor.' sourceDir = file( 'src/main/asciidoc/userguide' ) + sources { + include 'Hibernate_User_Guide.adoc' + } outputDir = new File("$buildDir/asciidoc/userguide/html_single") backends "html5" separateOutputDirs false @@ -261,6 +270,9 @@ task renderUserGuide(type: AsciidoctorTask, group: 'Documentation') { task renderIntegrationGuide(type: AsciidoctorTask, group: 'Documentation') { description = 'Renders the User Guides in HTML format using Asciidoctor.' sourceDir = file( 'src/main/asciidoc/integrationguide' ) + sources { + include 'Hibernate_Integration_Guide.adoc' + } outputDir = new File("$buildDir/asciidoc/integrationguide/html_single") backends "html5" separateOutputDirs false