summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..957671f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
1.PHONY: all clean
2
3WIKI_FILES := $(wildcard *.md)
4HTML_FILES := $(patsubst %.md,html/%.html,$(WIKI_FILES))
5
6all: $(HTML_FILES)
7
8clean:
9 $(RM) $(HTML_FILES)
10
11html/%.html: %.md html/style.css nord.theme fix-links.lua
12 @# TODO: change css path
13 pandoc $< \
14 --from markdown \
15 --css style.css \
16 --toc \
17 --highlight-style nord.theme \
18 --lua-filter=fix-links.lua \
19 --filter pandoc-sidenote \
20 --section-divs \
21 -so $@