switch to a makefile and update contribution instructions

This commit is contained in:
Ben Harris
2019-09-22 23:07:21 -04:00
parent 19c91c4033
commit 8b7f95ae74
5 changed files with 38 additions and 80 deletions

22
wiki/Makefile Normal file
View File

@@ -0,0 +1,22 @@
SRC_MD_FILES != find source -name '*.md'
DST_HTML_FILES := $(SRC_MD_FILES:source/%.md=%.html)
PANDOC != command -v pandoc 2> /dev/null
all: $(DST_HTML_FILES)
%.html: source/%.md
$(PANDOC) \
--template wiki.tmpl \
--lua-filter header-permalinks.lua \
--title-prefix "tilde.club wiki" \
--standalone \
--table-of-contents \
--output $@ \
$<
clean:
rm *.html
.PHONY: clean