diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-17 22:22:44 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-18 22:13:03 +0200 |
| commit | f57d38ec6425bdd41aa88a28d24b170c37680fdb (patch) | |
| tree | 4576972f2ab324439716357e84ea73923f5f3340 /repo/www/Makefile | |
| parent | 55cbc81e3be0cde371969f46b8029f25f11c4672 (diff) | |
| download | memory-leaks-f57d38ec6425bdd41aa88a28d24b170c37680fdb.tar.xz | |
Move page generation to a script
Will reduce friction to code things cleanly.
Diffstat (limited to 'repo/www/Makefile')
| -rw-r--r-- | repo/www/Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/repo/www/Makefile b/repo/www/Makefile index d748735..9640fc4 100644 --- a/repo/www/Makefile +++ b/repo/www/Makefile @@ -51,11 +51,9 @@ $(pages) $(subindices): $(title) $(pages) $(indices): $(html_template) $(pages): $(OUT_DIR)/%.html: - $(call v,PAGE,$*) TEXT_FILES="$(TEXT_FILES)" \ - pandoc -s $< -o $@ \ - -T "$$(cat $(title))" -M title="$*" \ - --template $(html_template) \ - --lua-filter convert-internal-links.lua + $(call v,PAGE,$*) TEXT_FILES="$(TEXT_FILES)" \ + ./generate-page.py --site-title="$$(cat $(title))" --title="$*" \ + $< $@ top_index = $(OUT_DIR)/index.html subindices = $(filter-out $(top_index),$(indices)) |
