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 2025/02/18 14:52:43 UTC

(commons-geometry) branch master updated: Update 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 21765da4 Update MathJax URL
21765da4 is described below

commit 21765da4289569a731dcef06608a0e02d9efae64
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Tue Feb 18 13:45:37 2025 +0000

    Update MathJax URL
    
    MathJax is now hosted on Apache servers to comply with the Content
    Security Policy (CSP) for project websites.
---
 commons-geometry-core/src/site/site.xml      | 2 +-
 commons-geometry-enclosing/src/site/site.xml | 2 +-
 commons-geometry-euclidean/src/site/site.xml | 2 +-
 commons-geometry-spherical/src/site/site.xml | 2 +-
 pom.xml                                      | 2 +-
 src/site/site.xml                            | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/commons-geometry-core/src/site/site.xml b/commons-geometry-core/src/site/site.xml
index c8f03c0a..38b72323 100644
--- a/commons-geometry-core/src/site/site.xml
+++ b/commons-geometry-core/src/site/site.xml
@@ -35,7 +35,7 @@
     </menu>
 
     <head>
-      <![CDATA[<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+      <![CDATA[<script type="text/javascript" src="https://commons.apache.org/js/mathjax/tex-mml-chtml.js">
       </script>]]>
     </head>
 
diff --git a/commons-geometry-enclosing/src/site/site.xml b/commons-geometry-enclosing/src/site/site.xml
index 88dc5cc1..581630ec 100644
--- a/commons-geometry-enclosing/src/site/site.xml
+++ b/commons-geometry-enclosing/src/site/site.xml
@@ -33,7 +33,7 @@
     </menu>
 
     <head>
-      <![CDATA[<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+      <![CDATA[<script type="text/javascript" src="https://commons.apache.org/js/mathjax/tex-mml-chtml.js">
       </script>]]>
     </head>
 
diff --git a/commons-geometry-euclidean/src/site/site.xml b/commons-geometry-euclidean/src/site/site.xml
index 9ecd73ae..98c22b6e 100644
--- a/commons-geometry-euclidean/src/site/site.xml
+++ b/commons-geometry-euclidean/src/site/site.xml
@@ -36,7 +36,7 @@
 
 
     <head>
-      <![CDATA[<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+      <![CDATA[<script type="text/javascript" src="https://commons.apache.org/js/mathjax/tex-mml-chtml.js">
       </script>]]>
     </head>
 
diff --git a/commons-geometry-spherical/src/site/site.xml b/commons-geometry-spherical/src/site/site.xml
index 661ad4b6..1d4d8b3b 100644
--- a/commons-geometry-spherical/src/site/site.xml
+++ b/commons-geometry-spherical/src/site/site.xml
@@ -35,7 +35,7 @@
     </menu>
 
     <head>
-      <![CDATA[<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+      <![CDATA[<script type="text/javascript" src="https://commons.apache.org/js/mathjax/tex-mml-chtml.js">
       </script>]]>
     </head>
 
diff --git a/pom.xml b/pom.xml
index 6fc28c0b..9070edfb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -60,7 +60,7 @@
     <maven.compiler.source>1.${commons.compiler.release}</maven.compiler.source>
     <maven.compiler.target>1.${commons.compiler.release}</maven.compiler.target>
     <!-- MathJax configuration. See the maven-javadoc-plugin plugin. -->
-    <geometry.mathjax.url>https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js</geometry.mathjax.url>
+    <geometry.mathjax.url>https://commons.apache.org/js/mathjax/tex-mml-chtml.js</geometry.mathjax.url>
     <!-- Workaround to avoid duplicating config files. -->
     <geometry.parent.dir>${basedir}</geometry.parent.dir>
 
diff --git a/src/site/site.xml b/src/site/site.xml
index d12fb03a..bdec023a 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -31,7 +31,7 @@
   <body>
     <!-- Custom <head> tag with injected XHTML is supported. -->
     <head>
-      <![CDATA[<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>]]>
+      <![CDATA[<script id="MathJax-script" async src="https://commons.apache.org/js/mathjax/tex-mml-chtml.js"></script>]]>
 
      <!--
         Workaround to get styles for inline code elements. The current version