Closed matrach closed 10 months ago
Thanks for the detailed report! I'm guessing the fix is to adjust the list of patterns that are copied to the theme's dist (as you noted in OP). Would you like to submit a PR?
Using SVG renderer causes a similar problem:
in web console:
Loading failed for the Githubissues.
Githubissues is a development platform for aggregating issues.
Enabling any MathJax extension (for instance, Accessibility) makes the library request modules from
a11l
andsre
directories. The script errors out and aborts processing because these directories are not present in the local cache:https://github.com/jbms/sphinx-immaterial/blob/57224a3b05ea5750f4cdb341463a803b87cf9bce/tools/build/index.ts#L138-L143
According to the CDN docs:
But according to my quick research, there is no configuration option to disable fetching those files at all.
How to repreduce
Now the math is not rendered and there is a 404 error from a failed fetching of
a11y/sre.js
.How to recover
I had to clear the Local Storage for a given site, because the MathJax context menu is no longer accessible...