+ update doc copySpec to prevent images from being filtered
This commit is contained in:
@@ -21,15 +21,25 @@ def imagesDir = new File(projectDir, 'src/reference/resources/images');
|
||||
[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.admonGraphicsPath = "./images/admon/"
|
||||
[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.imgSrcPath = "${imagesDir}"
|
||||
|
||||
// defined separately to prevent the replacement from taking place (seems to affect the images)
|
||||
imgSpec = copySpec {
|
||||
into ('reference') {
|
||||
from("$projectDir/src/reference/resources") {
|
||||
include "css/**/*"
|
||||
}
|
||||
}
|
||||
|
||||
into ('reference/images') {
|
||||
from (imagesDir)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
refSpec = copySpec {
|
||||
into ('reference') {
|
||||
from("$buildDir/docs") {
|
||||
exclude '*.fo'
|
||||
}
|
||||
from("$projectDir/src/reference/resources")
|
||||
}
|
||||
into ('reference/images') {
|
||||
from (imagesDir)
|
||||
}
|
||||
|
||||
p = new Properties()
|
||||
@@ -40,6 +50,8 @@ refSpec = copySpec {
|
||||
}
|
||||
|
||||
filter(ReplaceTokens, tokens: p)
|
||||
|
||||
with(imgSpec)
|
||||
}
|
||||
|
||||
task reference (type: Copy) {
|
||||
|
||||
Reference in New Issue
Block a user