Fix mathjax path and add test

This commit is contained in:
Ian Bell
2025-08-09 09:02:11 -04:00
parent 6ffc12474b
commit 572554f9e7

View File

@@ -124,7 +124,8 @@ if not zfile.exists():
urllib.request.urlretrieve("https://github.com/mathjax/MathJax/archive/refs/tags/4.0.0.zip", zfile)
with zipfile.ZipFile(zfile) as z:
z.extractall(path=Path(__file__).parent / '_static')
mathjax_path = "MathJax-master/tex-mml-chtml.js"
mathjax_path = "MathJax-4.0.0/tex-mml-chtml.js"
assert (Path(__file__).parent / '_static' / mathjax_path).exists()
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']