summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 03821385f051a19bb1aa69e9e46ec4e730bad575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: all clean

WIKI_FILES := $(wildcard *.md)
HTML_FILES := $(patsubst %.md,html/%.html,$(WIKI_FILES))

all: $(HTML_FILES)

clean:
	$(RM) $(HTML_FILES)

html/%.html: %.md html/style.css nord.theme fix-links.lua
	@# TODO: change css path
	pandoc "$<" \
		--from markdown \
		--css style.css \
		--toc \
		--highlight-style nord.theme \
		--lua-filter=fix-links.lua \
		--filter pandoc-sidenote \
		--section-divs \
		-so "$@"