Utilize make to render pages

This commit is contained in:
2023-05-20 17:38:37 +03:00
parent 001b4ed508
commit 7e760d8eba
10 changed files with 518 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
TEMPLATE := $(TEMPLATE_DIR)/algorithmica.html
METADATA := $(METADATA) metadata.md
PAGE := $(shell basename $(shell pwd))
all: $(BUILDDIR)/$(PAGE)/index.html
$(BUILDDIR)/$(PAGE)/index.html: main.md $(METADATA)
@mkdir -p $(@D)
pandoc $< $(METADATA) --to html --output $@ --standalone --template $(TEMPLATE) --mathjax
.PHONY: all