You simply create and edit Markdown textfiles and when you're ready to publish them on the web, tell "GNU make" to compile all of them to HTML:
Code: Select all
$ make
Here's the Makefile for this:
Code: Select all
PD = pandoc
SRC = $(wildcard *.md)
HTML = $(SRC:.md=.html)
OUT = ../
all: clean $(HTML)
%.html: %.md
$(PD) -so $@ $<
echo mv $@ $(OUT)$@
clean:
rm -f *.html
Thanks to Niko Heikkilä's example code.