summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-10-27 11:23:20 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-10-27 11:23:20 -0700
commit103d3d37324d8629d7dc1d549a38fbb8981b1f00 (patch)
tree0b237d2901ce166b74ea1382854864db5e9f211d /Makefile
parent05bd7217ed9e33341333b1bfd47a134889eff77c (diff)
Watermark old versions of the spec.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 30bf33a..c10a633 100644
--- a/Makefile
+++ b/Makefile
@@ -93,7 +93,8 @@ _site/spec.html: spec.txt
(echo "% CommonMark Spec\n";\
for vers in $(shell cd _site; ls -d -t 0.*) ; do \
date=`stat -t "%Y-%m-%d" -f "%Sa" _site/$$vers/index.html`; \
- echo "- [Version $$vers ($$date)](/$$vers/)" ; done) | \
+ echo "- [Version $$vers ($$date)](/$$vers/)" ; \
+ perl -pe 's/<div id="watermark"><\/div>/<div id="watermark">This is an older version of the spec. For the most recent version, see <a href="http:\/\/spec.commonmark.org">http:\/\/spec.commonmark.org<\/a>.<\/div>/' _site/$$vers/index.html; \ done) | \
pandoc --template template.html -S -s -t html5 -o $@
_site/index.html: _site/spec.html