From ed6e121105d1e93ece47655308fce34be755545a Mon Sep 17 00:00:00 2001 From: Cristian Olvera Lara Date: Fri, 23 Aug 2024 16:44:20 -0400 Subject: [PATCH] [Website] Use mathjax svg renderer We identified an issue where mathjax would fail to render certain math symbols. This happens on MacOS versions Ventura and later (13+) because of a change in the OS-supplied STIX fonts. We fix this here by changing the renderer from HTML+CSS (which tries to use local STIX fonts) to SVG. This is a follow up to https://github.com/pytorch/botorch/pull/2481 which solved the same problem on the botorch website --- website/siteConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/siteConfig.js b/website/siteConfig.js index d2af2b0f48d..ddc63117cc8 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -68,7 +68,7 @@ const siteConfig = { `${baseUrl}js/plotUtils.js`, 'https://buttons.github.io/buttons.js', `${baseUrl}js/mathjax.js`, - 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS_HTML', + 'https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS_SVG', ], // On page navigation for the current documentation page.