From ec683e448958fbd2e8e0b2f5c9e90d5ce9e0b200 Mon Sep 17 00:00:00 2001 From: s-ol Date: Tue, 3 Mar 2020 17:22:01 +0100 Subject: add index and guide pages --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b1d7263..3a91ad9 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,11 @@ MODREFS=$(MODULES:lib/%.moon=docs/reference/%.html) .PHONY: docs clean -docs: $(MODREFS) docs/reference/index.html +docs: docs/index.html docs/guide.html $(MODREFS) docs/reference/index.html + +docs/%.html: docs/%.md extra/docs.moon extra/layout.moon + @echo "building page $<" + moon extra/docs.moon $@ markdown $< docs/reference/%.html: lib/%.moon extra/docs.moon extra/layout.moon @echo "building docs for $<" @@ -15,3 +19,4 @@ docs/reference/index.html: $(MODREFS) extra/docs.moon extra/layout.moon clean: rm -rf docs/reference/* + rm docs/index.html docs/guide.html -- cgit v1.2.3