summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-10-27 09:06:26 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-10-27 09:06:26 -0700
commit143f3f5cf2630367fe7d614fb79d834601cad8d0 (patch)
treeb00d5b4ad7bfd7ade2715fbe0b2d7c9bec179ef7 /Makefile
parent57484668150bc847cb21dfa0ad9b2e8e56e2ba25 (diff)
Landing page for spec is now a list with links to all versions.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 976459c..a517083 100644
--- a/Makefile
+++ b/Makefile
@@ -89,8 +89,11 @@ fuzztest:
for i in `seq 1 10`; do \
time cat /dev/urandom | head -c 100000 | iconv -f latin1 -t utf-8 | $(PROG) >/dev/null; done
-_site/spec.html: spec.redirect.in spec.txt
- perl -pe 's/VERSION/$(SPECVERSION)/g' $< > $@
+_site/spec.html: spec.txt
+ (echo "% CommonMark Spec\n";\
+ for vers in $(shell cd _site; ls -d -t 0.*) ; do \
+ echo "- [Version $$vers](/$$vers/)" ; done) | \
+ pandoc --template template.html -S -s -t html5 -o $@
_site/index.html: _site/spec.html
cp $< $@