From 3e43e68cf9afbea7fa7ca4ce8a70e747b51ccd9c Mon Sep 17 00:00:00 2001 From: Kieran Wallbanks Date: Tue, 30 Mar 2021 14:02:35 +0100 Subject: [PATCH] Fix javadoc search resulting in 404 --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index 8ea2a7647..ea7c8c35d 100644 --- a/build.gradle +++ b/build.gradle @@ -50,6 +50,16 @@ allprojects { links "https://jd.adventure.kyori.net/api/$adventureVersion/" links "https://docs.oracle.com/en/java/javase/11/docs/api/" } + + // see https://stackoverflow.com/a/56641766 + doLast { + // Append the fix to the file + def searchScript = new File(destinationDir.getAbsolutePath() + '/search.js') + searchScript.append '\n\n' + + 'getURLPrefix = function(ui) {\n' + + ' return \'\';\n' + + '};\n' + } } checkstyle {