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 12:11:33 UTC
[commons-geometry] branch master updated: Use latest MathJax URL
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-geometry.git
The following commit(s) were added to refs/heads/master by this push:
new 10cb6abc Use latest MathJax URL
10cb6abc is described below
commit 10cb6abc72b5736c29505cdf9d2575ce7a82ccf2
Author: aherbert <ah...@apache.org>
AuthorDate: Tue Nov 1 12:08:48 2022 +0000
Use latest MathJax URL
---
pom.xml | 8 +++++---
src/site/site.xml | 6 ++----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/pom.xml b/pom.xml
index 28e8825f..aa38bd6a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,9 @@
<commons.encoding>UTF-8</commons.encoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
- <geometry.mathjax.version>2.7.2</geometry.mathjax.version>
+ <!-- MathJax configuration also includes the prerequisite polyfill.min.js script.
+ See the maven-javadoc-plugin plugin. -->
+ <geometry.mathjax.url>https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js</geometry.mathjax.url>
<!-- Workaround to avoid duplicating config files. -->
<geometry.parent.dir>${basedir}</geometry.parent.dir>
<!-- Multi-module support fixed in commons-parent 55 -->
@@ -318,7 +320,7 @@
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<!-- Enable MathJax -->
- <additionalOptions>${doclint.javadoc.qualifier} --allow-script-in-comments -header '<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/${geometry.mathjax.version}/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'</additionalOptions>
+ <additionalOptions>${doclint.javadoc.qualifier} --allow-script-in-comments -header '<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script><script type="text/javascript" async src="${geometry.mathjax.url}"></script>'</additionalOptions>
<links>
<link>https://commons.apache.org/proper/commons-numbers/commons-numbers-core/javadocs/api-${commons.numbers.version}/</link>
<link>https://commons.apache.org/proper/commons-numbers/commons-numbers-quaternion/javadocs/api-${commons.numbers.version}/</link>
@@ -438,7 +440,7 @@
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<!-- Enable MathJax -->
- <additionalOptions>${doclint.javadoc.qualifier} --allow-script-in-comments -header '<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/${geometry.mathjax.version}/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'</additionalOptions>
+ <additionalOptions>${doclint.javadoc.qualifier} --allow-script-in-comments -header '<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script><script type="text/javascript" async src="${geometry.mathjax.url}"></script>'</additionalOptions>
<links>
<link>https://commons.apache.org/proper/commons-numbers/commons-numbers-core/javadocs/api-${commons.numbers.version}/</link>
<link>https://commons.apache.org/proper/commons-numbers/commons-numbers-quaternion/javadocs/api-${commons.numbers.version}/</link>
diff --git a/src/site/site.xml b/src/site/site.xml
index 2e99efff..1a2e370a 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -31,10 +31,8 @@
<body>
<!-- Custom <head> tag with injected XHTML is supported. -->
<head>
- <![CDATA[
- <script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
- </script>
- ]]>
+ <![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>]]>
<!--
Workaround to get styles for inline code elements. The current version