HHH-8483 Moving metamodelgen documentation into documentation module

This commit is contained in:
Hardy Ferentschik 2013-10-25 21:53:32 +02:00 committed by Strong Liu
parent 7c8984469b
commit f25ea58750
5 changed files with 27 additions and 52 deletions

View File

@ -34,6 +34,7 @@ jdocbook {
finalName = "index.html" finalName = "index.html"
stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml-single.xsl" stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml-single.xsl"
} }
format('html') { format('html') {
finalName = "index.html" finalName = "index.html"
stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml.xsl" stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml.xsl"
@ -42,17 +43,19 @@ jdocbook {
// book-specific config ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // book-specific config ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
quickstart { quickstart {
masterSourceDocumentName = 'Hibernate_Getting_Started_Guide.xml' masterSourceDocumentName = 'Hibernate_Getting_Started_Guide.xml'
// only html supported due to tutorials.zip
// formats.pdf.enable = false
} }
devguide { devguide {
masterSourceDocumentName = 'Hibernate_Development_Guide.xml' masterSourceDocumentName = 'Hibernate_Development_Guide.xml'
useRelativeImageUris = false useRelativeImageUris = false
} }
// todo : need to remove this once all content moved to devguide
manual { manual {
masterSourceDocumentName = 'HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.xml' masterSourceDocumentName = 'HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.xml'
// translation = ['de-DE','es-ES','fr-FR','ja-JP','pt-BR','zh-CN'] }
metamodelgen {
masterSourceDocumentName = 'master.xml'
} }
} }
@ -69,7 +72,17 @@ stageStyles_devguide.doLast {
} }
} }
[ 'devguide', 'manual', 'quickstart' ].each { bookName -> stageStyles_metamodelgen.doLast {
logger.lifecycle( "Staging metamodelgen-specific style resources")
copy {
from project.file( 'src/main/docbook/metamodelgen/en-US/images' )
into project.file( "${buildDir}/docbook/stage/metamodelgen/images" )
include '*.png'
includeEmptyDirs = false
}
}
[ 'devguide', 'manual', 'quickstart', 'metamodelgen' ].each { bookName ->
tasks[ "stageStyles_$bookName" ].doLast { tasks[ "stageStyles_$bookName" ].doLast {
logger.lifecycle( "Staging local style resources") logger.lifecycle( "Staging local style resources")
copy { copy {

View File

@ -102,44 +102,6 @@ task javadocs(type: Javadoc) {
} }
} }
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Docbook
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*jdocbook {
useRelativeImageUris = false
format('html_single') {
finalName = "index.html"
stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml-single.xsl"
}
format('html') {
finalName = "index.html"
stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml.xsl"
}
dependencies {
jdocbookXsl libraries.pressgang_xslt
jdocbookXsl libraries.pressgang_fonts
jdocbookStyles libraries.hibernate_docbook_style
jdocbookStyles libraries.jboss_docbook_style
}
manual {
masterSourceDocumentName = 'master.xml'
}
}
stageStyles_manual.doLast {
logger.lifecycle( "Staging images")
copy {
from project.file( 'src/main/docbook/manual/en-US/images' )
into project.file( "${buildDir}/docbook/stage/manual/images" )
include '*.png'
includeEmptyDirs = false
}
}*/
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Release // Release
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~