aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-10-27 13:58:55 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-10-27 13:58:55 -0700
commit388b70aac60e9058e86ab922ab95d254e9f64a7b (patch)
tree56da65ec910beb89d82cb38070d81472e9147f0c /Makefile
parentb510c424c2fc389f99bca3dab0039e5170efdcb7 (diff)
Fixed watermark.
- No longer shows blank watermark on recent version. - Fixed broken Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c10a633..bba04dd 100644
--- a/Makefile
+++ b/Makefile
@@ -91,10 +91,11 @@ fuzztest:
_site/spec.html: spec.txt
(echo "% CommonMark Spec\n";\
- for vers in $(shell cd _site; ls -d -t 0.*) ; do \
+ for vers in $(shell cd _site; ls -d -t 0.*) ; do \
+ perl -pie 's/<div id="watermark"><\/div>/<div id="watermark" style="background-color:black">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 ; \
date=`stat -t "%Y-%m-%d" -f "%Sa" _site/$$vers/index.html`; \
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) | \
+ done) | \
pandoc --template template.html -S -s -t html5 -o $@
_site/index.html: _site/spec.html