Simplify inclusion of images and css in html* doc dirs
This commit is contained in:
@@ -115,6 +115,20 @@ task preprocessDocbookSources {
|
||||
task reference(dependsOn: [docbookHtml, docbookHtmlSingle, docbookPdf]) {
|
||||
group = 'Documentation'
|
||||
description = 'Generates all HTML and PDF reference documentation.'
|
||||
|
||||
doLast {
|
||||
// copy images and css into respective html dirs
|
||||
['html', 'htmlsingle'].each { dir ->
|
||||
copy {
|
||||
into "${buildDir}/reference/${dir}/images"
|
||||
from "src/reference/resources/images"
|
||||
}
|
||||
copy {
|
||||
into "${buildDir}/reference/${dir}/css"
|
||||
from "src/reference/resources/css"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[docbookHtml, docbookPdf, docbookHtmlSingle]*.sourceFileName = 'index.xml';
|
||||
@@ -144,16 +158,6 @@ docsSpec = copySpec {
|
||||
into("${version}/reference") {
|
||||
from("${buildDir}/reference")
|
||||
}
|
||||
|
||||
// copy images and css into respective html dirs
|
||||
['html', 'htmlsingle'].each { dir ->
|
||||
into("${version}/reference/${dir}/images") {
|
||||
from "src/reference/resources/images"
|
||||
}
|
||||
into("${version}/reference/${dir}/css") {
|
||||
from "src/reference/resources/css"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task archive(type: Zip, dependsOn: [api, reference]) {
|
||||
|
||||
@@ -86,17 +86,6 @@ task distArchive(type: Zip) {
|
||||
into("docs/reference") {
|
||||
from("docs/build/reference")
|
||||
}
|
||||
|
||||
// copy images and css into respective html dirs
|
||||
['html', 'htmlsingle'].each { dir ->
|
||||
into("docs/reference/${dir}/images") {
|
||||
from "src/reference/resources/images"
|
||||
}
|
||||
into("docs/reference/${dir}/css") {
|
||||
from "src/reference/resources/css"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// once the zip has been written, create a sha1 hash for it
|
||||
|
||||
Reference in New Issue
Block a user