move notebooks to subdir
This commit is contained in:
parent
c0dfb64979
commit
6a8215888b
6
Makefile
6
Makefile
|
@ -1,6 +1,6 @@
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
HTMLS = $(patsubst %.ipynb,html/%.html,$(wildcard *.ipynb))
|
HTMLS = $(patsubst notebooks/%.ipynb,html/%.html,$(wildcard notebooks/*.ipynb))
|
||||||
|
|
||||||
badmathjax = "file:\/\/\/usr\/share\/javascript\/mathjax\/MathJax.js?config=TeX-AMS_CHTML-full,Safe"
|
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"
|
goodmathjax = "https:\/\/cdn.jsdelivr.net\/npm\/mathjax@2\/MathJax.js?config=TeX-AMS_CHTML"
|
||||||
|
@ -10,8 +10,8 @@ all: $(HTMLS)
|
||||||
clean:
|
clean:
|
||||||
rm -r html
|
rm -r html
|
||||||
|
|
||||||
html/%.html: %.ipynb | html
|
html/%.html: notebooks/%.ipynb | html
|
||||||
jupyter nbconvert --to html $< --output $@ --execute
|
jupyter nbconvert --to html $< --output $@ --execute --output-dir=.
|
||||||
sed -i 's/$(badmathjax)/$(goodmathjax)/' $@
|
sed -i 's/$(badmathjax)/$(goodmathjax)/' $@
|
||||||
|
|
||||||
html:
|
html:
|
||||||
|
|
Loading…
Reference in New Issue