-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
35 lines (25 loc) · 793 Bytes
/
makefile
File metadata and controls
35 lines (25 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
MDSOURCES := $(wildcard md-src/*.md) $(wildcard md-src/**/*.md)
HTMLPAGES := $(MDSOURCES:md-src/%.md=docs/%.html)
PANDOC_OPTS := -f markdown+fenced_divs+wikilinks_title_before_pipe+implicit_figures+link_attributes -t html5 -V lang=en-US -s \
-c style.css \
--lua-filter=include-files.lua \
--lua-filter=wiki.lua \
--template=template.html \
--include-after-body=footer.html
all: clean etc pages search check
.PHONY: all clean index
pages: index $(HTMLPAGES)
@
search:
npx -y pagefind --site ./docs
index:
python3 index.py > md-src/index.md
docs/%.html: md-src/%.md
@pandoc $< $(PANDOC_OPTS) -o $@
etc:
cp -r includes/. docs
check:
@lua check-backlinks.lua
clean:
@rm -rf docs
@rm -f backlinks.csv