Skip to content

Commit 6758e2b

Browse files
committed
Add missing code for processing JavaFx documentation.
1 parent 3df9323 commit 6758e2b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

gulpfile.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ function pages() {
226226
if (href.includes("javafxdoc:")) {
227227
let javafxdoc_id = href.match(/javafxdoc:([\w\.\-(),]+)/)
228228
if (javafxdoc_id != null) {
229-
processedHref = processDocLink(javafxdoc["javafxdoc_root"] + javafxdoc[javafxdoc_id[1]]);
229+
processedHref = processJavaFxDocLink(javafxdoc["javafxdoc_root"] + javafxdoc[javafxdoc_id[1]]);
230230
if (processedHref.includes("undefined")) {
231-
console.log("Javadoc " + javafxdoc_id[1] + " resolved to undefined");
231+
console.log("JavaFX Javadoc " + javafxdoc_id[1] + " resolved to undefined");
232232
}
233233
return `<a href="${processedHref}" target="_blank" rel="noopener noreferrer">${text}</a>`;
234234
}
@@ -402,6 +402,10 @@ function processDocLink(link) {
402402
return link.replace("@@CURRENT_RELEASE@@", javadoc[`current_release`]);
403403
}
404404

405+
function processJavaFxDocLink(link) {
406+
return link.replace("@@CURRENT_RELEASE@@", javafxdoc[`current_release`]).replace("@@RELEASE_UUID@@", javafxdoc[`release_uuid`]);
407+
}
408+
405409

406410
function is_tutorial(file) {
407411
return file.fm.type == "tutorial" || file.fm.type == "tutorial-group";

0 commit comments

Comments
 (0)