diff --git a/build.gradle b/build.gradle index a8588881c..9c3200bcb 100644 --- a/build.gradle +++ b/build.gradle @@ -47,6 +47,18 @@ allprojects { options { destinationDir(file("docs")) addBooleanOption('html5', true) + 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' } }