summaryrefslogtreecommitdiff
path: root/repo/www/Makefile
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-04-29 00:40:14 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-04-29 00:40:14 +0200
commita4401b352150205d2f6ee7e3dc99c1145e399c60 (patch)
tree92829d81f4eda39f02f248c6ac87d0db5f7f76ef /repo/www/Makefile
parent23685fe090d986d3322903a003b91f7b1dfd1a3a (diff)
downloadmemory-leaks-a4401b352150205d2f6ee7e3dc99c1145e399c60.tar.xz
Fix links to internal pages
Replace .md/.org extension with .html. The output of "make" is now ugly as sin.
Diffstat (limited to 'repo/www/Makefile')
-rw-r--r--repo/www/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/repo/www/Makefile b/repo/www/Makefile
index cdc7ee2..db656f2 100644
--- a/repo/www/Makefile
+++ b/repo/www/Makefile
@@ -43,7 +43,10 @@ $(html_folders) $(cache):
$(pages) $(subindices): $(title)
$(pages): $(OUT_DIR)/%.html:
- pandoc -s $< -o $@ -T "$$(cat $(title))" -M title="$*"
+ TEXT_FILES="$(TEXT_FILES)" \
+ pandoc -s $< -o $@ \
+ -T "$$(cat $(title))" -M title="$*" \
+ --lua-filter convert-internal-links.lua
top_index = $(OUT_DIR)/index.html
subindices = $(filter-out $(top_index),$(indices))
@@ -54,6 +57,7 @@ $(subindices): index_options = --site-title="$$(cat $(title))"
# ⚠ When tweaking this rule, check whether it still works for the
# top-level index.html.
$(indices): $(OUT_DIR)/%index.html:
+ TEXT_FILES="$(TEXT_FILES)" \
./generate-index.py $(index_options) $(site_tree) "$(patsubst %/,%,$*)" $@
clean: