diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
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 | |||
3 | WIKI_FILES := $(wildcard *.md) | ||
4 | HTML_FILES := $(patsubst %.md,html/%.html,$(WIKI_FILES)) | ||
5 | |||
6 | all: $(HTML_FILES) | ||
7 | |||
8 | clean: | ||
9 | $(RM) $(HTML_FILES) | ||
10 | |||
11 | html/%.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 $@ | ||