mirror of
https://gitee.com/jmix/cuba.git
synced 2024-11-30 10:17:43 +08:00
This commit is contained in:
parent
21e776600a
commit
6288ae04c3
29
build.gradle
29
build.gradle
@ -556,6 +556,14 @@ task transformSecurity(type: TransformDocbook) {
|
||||
classpath = configurations.buildDoc
|
||||
}
|
||||
|
||||
def commonXslParameters = [
|
||||
'toc.section.depth': '5',
|
||||
'chunk.section.depth': '5',
|
||||
'section.autolabel': '1',
|
||||
'chapter.autolabel': '1',
|
||||
'appendix.autolabel': 'A'
|
||||
]
|
||||
|
||||
task buildManualWebHelp(type: DocBook2WebHelp, dependsOn: transformManual) {
|
||||
sourceFile = transformManual.destFile
|
||||
imagesDir = new File(transformManual.sourceDir, "img")
|
||||
@ -564,13 +572,18 @@ task buildManualWebHelp(type: DocBook2WebHelp, dependsOn: transformManual) {
|
||||
searchDir = new File(docToolsDir, "webhelp/search")
|
||||
brand = "CUBA"
|
||||
language = "ru"
|
||||
xslParameters = [
|
||||
'toc.section.depth': '5',
|
||||
'chunk.section.depth': '5',
|
||||
'section.autolabel': '1',
|
||||
'chapter.autolabel': '1',
|
||||
'appendix.autolabel': 'A'
|
||||
]
|
||||
xslParameters = commonXslParameters
|
||||
}
|
||||
|
||||
task buildSecurityWebHelp(type: DocBook2WebHelp, dependsOn: transformSecurity) {
|
||||
sourceFile = transformSecurity.destFile
|
||||
imagesDir = new File(transformSecurity.sourceDir, "img")
|
||||
destDir = new File(docDstDir, "security/ru/webhelp")
|
||||
templateDir = new File(docToolsDir, "webhelp/template")
|
||||
searchDir = new File(docToolsDir, "webhelp/search")
|
||||
brand = "CUBA"
|
||||
language = "ru"
|
||||
xslParameters = commonXslParameters
|
||||
}
|
||||
|
||||
task buildSecurityXhtml(type: Docbook2Xhtml, dependsOn: transformSecurity) {
|
||||
@ -647,7 +660,7 @@ task buildSecuritySingleHtml(type: Docbook2Xhtml, dependsOn: transformSecurity)
|
||||
}
|
||||
|
||||
task buildDoc(type: Zip, description: 'Build documentation',
|
||||
dependsOn: [buildManualSingleHtml, buildSecuritySingleHtml, buildSecurityPdf, buildManualWebHelp]) {
|
||||
dependsOn: [buildManualSingleHtml, buildSecuritySingleHtml, buildSecurityPdf, buildManualWebHelp, buildSecurityWebHelp]) {
|
||||
//dependsOn: [buildManualSingleHtml,buildManualPdf,buildSecuritySingleHtml,buildSecurityPdf]) {
|
||||
from 'build/doc'
|
||||
destinationDir = file('build/distributions')
|
||||
|
Loading…
Reference in New Issue
Block a user