From 7a126d9764e7536d291608889ca7525dcb972769 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 27 Oct 2014 23:05:18 -0700 Subject: Make "latest version" more prominent on spec landing page. --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index e1475d5..e16b962 100644 --- a/Makefile +++ b/Makefile @@ -91,19 +91,18 @@ 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.txt +$(SITE)/index.html: spec.txt (echo "% CommonMark Spec\n";\ + echo "[**Latest version ($(SPECVERSION))**](/$(SPECVERSION)/)\n"; \ + echo "Older versions:\n"; \ for vers in $(VERSIONS); do \ if [ "$$vers" != "$(SPECVERSION)" ]; then \ perl -p -i -e 's/
.*?<\/div>/