summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRochDLY <roch.delannay@gmail.com>2024-01-12 18:01:04 +0100
committerRochDLY <roch.delannay@gmail.com>2024-01-12 18:01:04 +0100
commite731ffdb377e67723c672f9d8b895a3ca77b1a2b (patch)
tree2caad133e71edf1cddd78994fbbcd82a39198059
parent03381d5cadffb92155cf7fa14d45140d1881955a (diff)
downloadpandoc-site-e731ffdb377e67723c672f9d8b895a3ca77b1a2b.tar.gz
pandoc-site-e731ffdb377e67723c672f9d8b895a3ca77b1a2b.tar.bz2
pandoc-site-e731ffdb377e67723c672f9d8b895a3ca77b1a2b.zip
ajout de la production d'une page index-c dans le makefile
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 120610c..5c8a151 100644
--- a/Makefile
+++ b/Makefile
@@ -47,7 +47,17 @@ serve:
# Pandoc conversions
# HTML
-html: $(STATIC_DOCS) docs/index.html $(POSTS_DOCS) $(PAGES_DOCS)
+html: $(STATIC_DOCS) docs/index.html docs/index-cache.html $(POSTS_DOCS) $(PAGES_DOCS)
+
+docs/index-cache.html: src/index-cache.md templates/index-cache.html $(metadata_site)
+ @ echo "Production de l'index caché."
+ @ pandoc \
+ $< \
+ $(PANDOCFLAGS) \
+ --template templates/index-cache.html \
+ --output $@
+ @ echo "L'index caché est construit."
+
docs/index.html: src/index.md templates/index.html $(metadata_site)
@ echo "Production de l'index."