Skip to content

Commit e2d6813

Browse files
committed
HHH-9986 - Fix reference manual inconsistencies for 5.0
1 parent 98d5e94 commit e2d6813

File tree

389 files changed

+15173
-367
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

389 files changed

+15173
-367
lines changed

documentation/documentation.gradle

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -165,35 +165,36 @@ jdocbook {
165165
}
166166

167167
// book-specific config
168-
devguide {
169-
masterSourceDocumentName = 'Hibernate_Development_Guide.xml'
170-
}
171-
172168
manual {
173169
masterSourceDocumentName = 'Hibernate_Manual.xml'
174170
}
171+
integration {
172+
masterSourceDocumentName = 'Hibernate_Integrations.xml'
173+
}
174+
mapping {
175+
masterSourceDocumentName = 'Hibernate_Mapping.xml'
176+
}
175177
}
176178

177-
// todo : make this part of gradle-jdocbook.
178-
// specifically the ability to supply ant-style resource for images (dir + include/exclude patterns)
179-
stageStyles_devguide.doLast {
180-
logger.lifecycle( "Staging devguide-specific style resources")
181-
copy {
182-
into project.file( 'target/docbook/stage/devguide/images' )
183-
from project.file( 'src/main/docbook/devguide/en-US' )
184-
include '**/images/*.png'
185-
include '**/images/*.svg'
186-
includeEmptyDirs = false
187-
}
188-
}
189-
190-
[ 'devguide', 'manual'].each { bookName ->
179+
[ 'integration', 'manual', 'mapping'].each { bookName ->
191180
task "stageLocalStyles_$bookName"(type: Copy) {
192181
into project.file( "target/docbook/stage/$bookName" )
193182
from project.file( 'src/main/style' )
194183
includeEmptyDirs = false
195184
}
185+
196186
tasks[ "stageStyles_$bookName" ].dependsOn "stageLocalStyles_$bookName"
187+
188+
tasks[ "stageStyles_$bookName" ].doLast {
189+
logger.lifecycle( "Staging devguide-specific style resources")
190+
copy {
191+
into project.file( "target/docbook/stage/$bookName/images" )
192+
from project.file( "src/main/docbook/$bookName/en-US" )
193+
include '**/images/*.png'
194+
include '**/images/*.svg'
195+
includeEmptyDirs = false
196+
}
197+
}
197198
}
198199

199200

0 commit comments

Comments
 (0)