aboutsummaryrefslogtreecommitdiff
path: root/html/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2021-02-24 21:45:01 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2021-02-24 21:45:01 +0100
commitb9f28e54c1dd613d3aebfb3d4598d08b5d3a2ed4 (patch)
treeff0d6843b5a6633ed45fab79fccb3dc34257c303 /html/Makefile
parent417ee7a0819ba760994bd532b184125eca13d231 (diff)
downloadmuhqs-game-b9f28e54c1dd613d3aebfb3d4598d08b5d3a2ed4.tar.gz
muhqs-game-b9f28e54c1dd613d3aebfb3d4598d08b5d3a2ed4.zip
[html] add pandoc template using a sidebar for the toc
Diffstat (limited to 'html/Makefile')
-rw-r--r--html/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/html/Makefile b/html/Makefile
index d495a5a2..b11d692d 100644
--- a/html/Makefile
+++ b/html/Makefile
@@ -1,6 +1,6 @@
VERBOSE = @
-PANDOC_FLAGS = -f markdown -s
+PANDOC_FLAGS = -f markdown -s --template=./template.html
BUILDDIR = build
@@ -11,8 +11,7 @@ EN_RULES = $(addprefix $(RULES_DIR)/en/,$(RULE_FILES))
RULES = $(DE_RULES) $(EN_RULES)
RULES_HTML = $(addprefix $(BUILDDIR)/,$(RULES:.md=.html))
-MAPS_DIR = ../../maps
-MAPS_BUILDDIR = $(BUILDDIR)/maps
+MAPS_DIR = ../maps
SITES = index.md rules.md cards.md maps.md
HTML = $(addprefix $(BUILDDIR)/,$(SITES:.md=.html))
@@ -24,8 +23,8 @@ clean:
rm -rf $(BUILDDIR)
maps:
- ln -sf $(MAPS_DIR) $(MAPS_BUILDDIR)
- make -C $(MAPS_BUILDDIR)
+ ln -sf ../$(MAPS_DIR) $(BUILDDIR)/maps
+ make -C $(MAPS_DIR)
$(BUILDDIR)/%.html: %.md
@echo "building $@"