Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit d19b52c

Browse files
committed
Fix broken docId
1 parent 36e3efb commit d19b52c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

doc/build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ ext {
7272
]
7373
asciidocSourceDir = "$projectDir/asciidoc"
7474
distDir = "$buildDir/distributions"
75+
docId = 'graph-algorithms'
7576
}
7677

7778
def getAsciidoctor() {
@@ -107,6 +108,17 @@ task docbook {
107108
into outputDir
108109
}
109110
}
111+
finalizedBy 'preprocess'
112+
}
113+
114+
preprocess {
115+
dependsOn docbook
116+
def sourceFile = "${buildDir}/docbook/${versions.graphAlgoDocs}/index.xml"
117+
input sourceFile
118+
outFile sourceFile
119+
parameters([
120+
"book-id": "$docId"
121+
])
110122
}
111123

112124
task makeToc(type: XsltTask, dependsOn: docbook) {
@@ -142,7 +154,6 @@ html {
142154
ext.sourceDir = docbook.outputDir
143155
ext.sourceFile = "$sourceDir/index.xml"
144156
ext.outputDir = "$buildDir/html/${versions.graphAlgoDocs}"
145-
ext.docId = 'graph-algorithms'
146157
ext.contentMap = "$projectDir/docbook/content-map.xml"
147158
inputs.file sourceFile
148159
inputs.dir 'css'

0 commit comments

Comments
 (0)