replace the local mathjax script with remote

This commit is contained in:
filifa 2025-04-12 00:59:08 -04:00
parent 45a14137f3
commit d7d46da4c1
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,9 @@
HTMLS = $(patsubst %.ipynb,html/%.html,$(wildcard *.ipynb))
badmathjax = "file:\/\/\/usr\/share\/javascript\/mathjax\/MathJax.js?config=TeX-AMS_CHTML-full,Safe"
goodmathjax = "https:\/\/cdn.jsdelivr.net\/npm\/mathjax@2\/MathJax.js?config=TeX-AMS_CHTML"
all: $(HTMLS)
clean:
@ -9,6 +12,7 @@ clean:
html/%.html: %.ipynb | html
jupyter nbconvert --to html $< --output $@ --execute
sed -i 's/$(badmathjax)/$(goodmathjax)/' $@
html:
mkdir -p html