diff options
author | Minijackson <minijackson@riseup.net> | 2020-07-19 11:45:00 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2020-07-19 11:45:00 +0200 |
commit | fcf3fec67fa934d0c6964c785168167ab3cb7517 (patch) | |
tree | 6131b8b60ea1aaa15c3ca82012e9ea17b85ae95f /Makefile | |
download | wtf-is-linux-website-fcf3fec67fa934d0c6964c785168167ab3cb7517.tar.gz wtf-is-linux-website-fcf3fec67fa934d0c6964c785168167ab3cb7517.zip |
Add current status
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 $@ | ||