The old build system worked, but ssg adds some features while still being simple and easy to hack on: * set page title from the h1 tag, rather than the file name * generate a sitemap (which we adapt to also generate a nav) This site doesn't need a dynamic nav, but the Anarchy Planet docs site will have a lot of rapidly changing pages and will benefit from a dynamic nav. This way we can use the same build system for both sites.
14 lines
166 B
Makefile
14 lines
166 B
Makefile
include config.mk
|
|
|
|
SRC ?= src
|
|
DST ?= dst
|
|
|
|
all: html
|
|
|
|
html:
|
|
$(SSG) $(SRC) $(DST) $(TITLE) $(BASE_URL) $(CONTACT_EMAIL)
|
|
|
|
clean:
|
|
@rm -f $(DST)/*
|
|
@rm -f $(DST)/.files
|