2022-03-01 23:07:01 +00:00
|
|
|
SRCS := $(shell find content pages -name '*.md')
|
|
|
|
HTML := $(SRCS:content/%.md=%.html)
|
|
|
|
HTML := $(HTML:pages/%.md=%.html)
|
|
|
|
vpath %.md content pages
|
|
|
|
vpath %.html dist
|
|
|
|
|
|
|
|
%.html: %.md
|
|
|
|
pandoc -t html \
|
|
|
|
--standalone \
|
|
|
|
-B templates/nav.html \
|
2022-03-04 00:00:50 +00:00
|
|
|
--template=templates/episode.template \
|
2022-03-01 23:07:01 +00:00
|
|
|
--css assets/styles/main.css \
|
|
|
|
--toc \
|
|
|
|
-o dist/$@ $<
|
|
|
|
|
|
|
|
index.md:
|
|
|
|
./bin/build-index.sh
|
|
|
|
|
|
|
|
rssfeed:
|
2022-03-04 00:00:50 +00:00
|
|
|
./bin/build-podcast.sh
|
2022-03-01 23:07:01 +00:00
|
|
|
|
|
|
|
build: $(HTML) index.md rssfeed
|
|
|
|
cp -R assets dist
|
|
|
|
pandoc -t html \
|
|
|
|
--standalone \
|
|
|
|
-H templates/header.html \
|
|
|
|
-B templates/nav.html \
|
|
|
|
-o dist/index.html \
|
|
|
|
--css assets/styles/main.css \
|
|
|
|
index.md app.yaml
|