HTML := index.html contact.html cv.html

PANDOC_FLAGS := --katex \
	--from markdown+tex_math_single_backslash \
	--lua-filter "./stylesheets/pandoc-sidenote.lua" \
	--to html5+smart \
	--template "./stylesheets/tufte.html5" \
	--css "./stylesheets/tufte.css"

.PHONY: all clean

all: $(HTML)

%.html: %.md Connor\ McClellan\ Astronomy.md ./stylesheets/tufte.html5 ./stylesheets/tufte.css ./stylesheets/pandoc-sidenote.lua
	pandoc $(PANDOC_FLAGS) -o "$@" "Connor McClellan Astronomy.md" "$<"

clean:
	rm -f $(HTML)
