mirror of
https://github.com/tildeclub/site.git
synced 2026-01-23 21:40:18 +00:00
switch to a makefile and update contribution instructions
This commit is contained in:
22
wiki/Makefile
Normal file
22
wiki/Makefile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user