This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 1615fc16ba1 SOLR-17342: Upgrade mathjax in old refGuide pages
1615fc16ba1 is described below
commit 1615fc16ba1e42906f8da8b6ba0d35b5ec5a698d
Author: Houston Putman <[email protected]>
AuthorDate: Tue Apr 15 14:35:02 2025 -0500
SOLR-17342: Upgrade mathjax in old refGuide pages
---
dev-tools/scripts/refguide/refguide-download-js-css.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dev-tools/scripts/refguide/refguide-download-js-css.py
b/dev-tools/scripts/refguide/refguide-download-js-css.py
index ec3e0b1a8a5..d523924cd3b 100755
--- a/dev-tools/scripts/refguide/refguide-download-js-css.py
+++ b/dev-tools/scripts/refguide/refguide-download-js-css.py
@@ -90,6 +90,8 @@ def process_html_file(html_file_path, js_dir, css_dir,
skip_files=None):
if script and is_external_url(script["src"]):
src = script["src"]
+ if "MathJax" in src:
+ src =
"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
filename = os.path.basename(urlparse(src).path)
version = extract_version_from_url(src)
if version and not re.search(r'\d+\.\d+(\.\d+)?', filename):
@@ -101,6 +103,8 @@ def process_html_file(html_file_path, js_dir, css_dir,
skip_files=None):
modified = True
elif link and is_external_url(link["href"]):
href = link["href"]
+ if "MathJax" in href:
+ href =
"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
filename = os.path.basename(urlparse(href).path)
if filename not in skip_files:
version = extract_version_from_url(href)