Change mathjax config file name

This commit is contained in:
cuom1999 2022-11-25 12:52:49 -06:00
parent 51a8400fa5
commit 3df9b6ab79
16 changed files with 15 additions and 41 deletions

View file

@ -96,7 +96,7 @@ class Command(BaseCommand):
.replace("'//", "'https://")
)
maker.title = problem_name
for file in ("style.css", "pygment-github.css", "mathjax_config.js"):
for file in ("style.css", "pygment-github.css", "mathjax3_config.js"):
maker.load(file, os.path.join(settings.DMOJ_RESOURCES, file))
maker.make(debug=True)
if not maker.success:

View file

@ -394,7 +394,7 @@ class ProblemPdfView(ProblemMixin, SingleObjectMixin, View):
maker.title = problem_name
assets = ["style.css", "pygment-github.css"]
if maker.math_engine == "jax":
assets.append("mathjax_config.js")
assets.append("mathjax3_config.js")
for file in assets:
maker.load(file, os.path.join(settings.DMOJ_RESOURCES, file))
maker.make()

View file

@ -59,7 +59,7 @@ else:
class MathJaxPagedownWidget(PagedownWidget):
class Media:
js = [
"mathjax_config.js",
"mathjax3_config.js",
"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js",
"pagedown_math.js",
]