use podman container to build
This commit is contained in:
6
Makefile
6
Makefile
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user