Use latest MathJax URL

This commit is contained in:
aherbert 2022-11-01 12:05:04 +00:00
parent fc239a64be
commit 1b7cff82ab
2 changed files with 10 additions and 7 deletions

View File

@ -59,7 +59,9 @@
<commons.encoding>UTF-8</commons.encoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<math.mathjax.version>2.7.2</math.mathjax.version>
<!-- MathJax configuration also includes the prerequisite polyfill.min.js script.
See the maven-javadoc-plugin plugin. -->
<math.mathjax.url>https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js</math.mathjax.url>
<math.commons.numbers.version>1.1-SNAPSHOT</math.commons.numbers.version>
<math.commons.rng.version>1.5</math.commons.rng.version>
<math.commons.geometry.version>1.0</math.commons.geometry.version>
@ -429,7 +431,7 @@
<links combine.self="override">
</links>
<!-- Enable MathJax -->
<additionalOptions>${doclint.javadoc.qualifier} ${allowscript.javadoc.qualifier} -header '&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/${math.mathjax.version}/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalOptions>
<additionalOptions>${doclint.javadoc.qualifier} ${allowscript.javadoc.qualifier} -header '&lt;script src="https://polyfill.io/v3/polyfill.min.js?features=es6"&gt;&lt;/script&gt;&lt;script type="text/javascript" async src="${math.mathjax.url}"&gt;&lt;/script&gt;'</additionalOptions>
</configuration>
</plugin>
<plugin>
@ -543,7 +545,7 @@
<links combine.self="override">
</links>
<!-- Enable MathJax -->
<additionalOptions>${doclint.javadoc.qualifier} ${allowscript.javadoc.qualifier} -header '&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/${math.mathjax.version}/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalOptions>
<additionalOptions>${doclint.javadoc.qualifier} ${allowscript.javadoc.qualifier} -header '&lt;script src="https://polyfill.io/v3/polyfill.min.js?features=es6"&gt;&lt;/script&gt;&lt;script type="text/javascript" async src="${math.mathjax.url}"&gt;&lt;/script&gt;'</additionalOptions>
</configuration>
</plugin>
</plugins>

View File

@ -23,6 +23,11 @@
</bannerRight>
<body>
<head>
<![CDATA[<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>]]>
</head>
<menu name="Math">
<item name="Overview" href="/index.html"/>
<item name="Downloads" href="http://commons.apache.org/math/download_math.cgi"/>
@ -82,9 +87,5 @@
<item name="Exceptions" href="/userguide/exceptions.html"/>
</menu>
<head>
<![CDATA[<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>]]>
</head>
</body>
</project>