You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/11/01 11:55:51 UTC
[commons-numbers] 05/05: Fix broken search in javadoc pages
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit dce586e2593e79a32384126816341eba368ac248
Author: aherbert <ah...@apache.org>
AuthorDate: Tue Nov 1 11:39:05 2022 +0000
Fix broken search in javadoc pages
---
pom.xml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/pom.xml b/pom.xml
index 9861d348..5be77b24 100644
--- a/pom.xml
+++ b/pom.xml
@@ -330,6 +330,17 @@
<failOnWarnings>true</failOnWarnings>
<!-- Enable MathJax -->
<additionalOptions>${doclint.javadoc.qualifier} ${allowscript.javadoc.qualifier} -header '<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script><script type="text/javascript" async src="${numbers.mathjax.url}"></script>'</additionalOptions>
+ <!-- Fix for javadoc search:
+ https://stackoverflow.com/questions/52326318/maven-javadoc-search-redirects-to-undefined-url -->
+ <bottom>
+ <![CDATA[
+ <script>
+ if (typeof useModuleDirectories !== 'undefined') {
+ useModuleDirectories = false;
+ }
+ </script>
+ ]]>
+ </bottom>
</configuration>
</plugin>
<plugin>
@@ -442,6 +453,17 @@
<failOnWarnings>true</failOnWarnings>
<!-- Enable MathJax -->
<additionalOptions>${doclint.javadoc.qualifier} ${allowscript.javadoc.qualifier} -header '<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script><script type="text/javascript" async src="${numbers.mathjax.url}"></script>'</additionalOptions>
+ <!-- Fix for javadoc search:
+ https://stackoverflow.com/questions/52326318/maven-javadoc-search-redirects-to-undefined-url -->
+ <bottom>
+ <![CDATA[
+ <script>
+ if (typeof useModuleDirectories !== 'undefined') {
+ useModuleDirectories = false;
+ }
+ </script>
+ ]]>
+ </bottom>
</configuration>
</plugin>
</plugins>