-
Notifications
You must be signed in to change notification settings - Fork 117
/
Makefile
30 lines (24 loc) · 833 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SRC = $(wildcard notebooks/*.ipynb)
MDS = $(patsubst notebooks/%.ipynb, markdown/%.md, $(SRC))
PDFS = $(patsubst markdown/%.md, markdown/%.pdf, $(MDS))
all: $(PDFS)
pdf: clean $(PDFS)
html: clean $(HTML)
markdown/%.md: notebooks/%.ipynb
python exporter.py $<
pdfs/%.pdf: markdown/%.md
pandoc -t beamer --slide-level 2 --template=default.beamer -o $@ $< --metadata="theme:metropolis"
clean:
rm -f *.html *.pdf 0*.md
slides.pdf: $(MDS)
pandoc metadata.yaml \
markdown/00-README.md \
markdown/01-Indexing.md \
markdown/02-Alignment.md \
markdown/03-Iterators-Groupby.md \
markdown/04-Visualization.md \
markdown/05-Tidy-Data.md \
markdown/06-Performance.md \
markdown/07-Timeseries.md \
markdown/08-Pandas-NumPy-ScikitLearn.md \
-t beamer --slide-level 2 --latex-engine=xelatex -V theme:metropolis -o $@