HHH-12732 Only generate the main document for each guide

This commit is contained in:
Guillaume Smet 2018-06-26 10:49:57 +02:00
parent bee6ed5c37
commit b45e921b5c
1 changed files with 12 additions and 0 deletions

View File

@ -180,6 +180,9 @@ task renderTopicalGuides(type: AsciidoctorTask, group: 'Documentation') {
task renderGettingStartedGuides(type: AsciidoctorTask, group: 'Documentation') { task renderGettingStartedGuides(type: AsciidoctorTask, group: 'Documentation') {
description = 'Renders the Getting Started Guides (quick starts) in HTML format using Asciidoctor.' description = 'Renders the Getting Started Guides (quick starts) in HTML format using Asciidoctor.'
sourceDir = file( 'src/main/asciidoc/quickstart/guides' ) sourceDir = file( 'src/main/asciidoc/quickstart/guides' )
sources {
include 'index.adoc'
}
outputDir = new File("$buildDir/asciidoc/quickstart/html_single") outputDir = new File("$buildDir/asciidoc/quickstart/html_single")
backends "html5" backends "html5"
separateOutputDirs false separateOutputDirs false
@ -209,6 +212,9 @@ renderGettingStartedGuides.dependsOn buildTutorialZip
task renderMappingGuide(type: AsciidoctorTask, group: 'Documentation') { task renderMappingGuide(type: AsciidoctorTask, group: 'Documentation') {
description = 'Renders the Mapping Guides in HTML format using Asciidoctor.' description = 'Renders the Mapping Guides in HTML format using Asciidoctor.'
sourceDir = file( 'src/main/asciidoc/mapping' ) sourceDir = file( 'src/main/asciidoc/mapping' )
sources {
include 'index.adoc'
}
outputDir = new File("$buildDir/asciidoc/mapping/html") outputDir = new File("$buildDir/asciidoc/mapping/html")
backends "html5" backends "html5"
separateOutputDirs false separateOutputDirs false
@ -228,6 +234,9 @@ task renderMappingGuide(type: AsciidoctorTask, group: 'Documentation') {
task renderUserGuide(type: AsciidoctorTask, group: 'Documentation') { task renderUserGuide(type: AsciidoctorTask, group: 'Documentation') {
description = 'Renders the User Guides in HTML format using Asciidoctor.' description = 'Renders the User Guides in HTML format using Asciidoctor.'
sourceDir = file( 'src/main/asciidoc/userguide' ) sourceDir = file( 'src/main/asciidoc/userguide' )
sources {
include 'Hibernate_User_Guide.adoc'
}
outputDir = new File("$buildDir/asciidoc/userguide/html_single") outputDir = new File("$buildDir/asciidoc/userguide/html_single")
backends "html5" backends "html5"
separateOutputDirs false separateOutputDirs false
@ -261,6 +270,9 @@ task renderUserGuide(type: AsciidoctorTask, group: 'Documentation') {
task renderIntegrationGuide(type: AsciidoctorTask, group: 'Documentation') { task renderIntegrationGuide(type: AsciidoctorTask, group: 'Documentation') {
description = 'Renders the User Guides in HTML format using Asciidoctor.' description = 'Renders the User Guides in HTML format using Asciidoctor.'
sourceDir = file( 'src/main/asciidoc/integrationguide' ) sourceDir = file( 'src/main/asciidoc/integrationguide' )
sources {
include 'Hibernate_Integration_Guide.adoc'
}
outputDir = new File("$buildDir/asciidoc/integrationguide/html_single") outputDir = new File("$buildDir/asciidoc/integrationguide/html_single")
backends "html5" backends "html5"
separateOutputDirs false separateOutputDirs false