use podman container to build

This commit is contained in:
filifa
2025-12-30 20:06:43 -05:00
parent 1e85e7e768
commit ef94059ff6

View File

@@ -2,17 +2,13 @@
HTMLS = $(patsubst notebooks/%.ipynb,html/%.html,$(wildcard notebooks/*.ipynb)) HTMLS = $(patsubst notebooks/%.ipynb,html/%.html,$(wildcard notebooks/*.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) all: $(HTMLS)
clean: clean:
rm -r html rm -r html
html/%.html: notebooks/%.ipynb | html html/%.html: notebooks/%.ipynb | html
jupyter nbconvert --to html $< --output $@ --output-dir=. podman run -it --rm -v .:/home/sage/eulerbooks --userns=keep-id sagemath/sagemath:latest jupyter nbconvert --to html eulerbooks/$< --output $@ --output-dir=eulerbooks/
sed -i 's/$(badmathjax)/$(goodmathjax)/' $@
html: html:
mkdir -p html mkdir -p html