From ef94059ff63e417b440279c38bf87ef12f6040da Mon Sep 17 00:00:00 2001 From: filifa Date: Tue, 30 Dec 2025 20:06:43 -0500 Subject: [PATCH] use podman container to build --- Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 2e568a9..fb45c7d 100644 --- a/Makefile +++ b/Makefile @@ -2,17 +2,13 @@ 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) clean: rm -r html html/%.html: notebooks/%.ipynb | html - jupyter nbconvert --to html $< --output $@ --output-dir=. - sed -i 's/$(badmathjax)/$(goodmathjax)/' $@ + podman run -it --rm -v .:/home/sage/eulerbooks --userns=keep-id sagemath/sagemath:latest jupyter nbconvert --to html eulerbooks/$< --output $@ --output-dir=eulerbooks/ html: mkdir -p html