From 9d8dba5acd00edec29e385ac859bc28c9991dae9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 26 Oct 2014 21:42:22 -0700 Subject: Added (interact) links to spec, to open examples in dingus. --- template.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'template.html') diff --git a/template.html b/template.html index 0eaf299..b17d285 100644 --- a/template.html +++ b/template.html @@ -47,6 +47,7 @@ pre.html span.space:after { border: 1px solid #666; } div.examplenum { font-size: 82%; text-align: left; } +a.dingus { color: red; } a.footnoteRef > sup:before { content: "["; } @@ -58,6 +59,20 @@ a.footnoteRef > sup { font-size: 100%; } + + $if(title)$ -- cgit v1.2.3 From 103d3d37324d8629d7dc1d549a38fbb8981b1f00 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 27 Oct 2014 11:23:20 -0700 Subject: Watermark old versions of the spec. --- Makefile | 3 ++- template.html | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'template.html') 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>/
This is an older version of the spec. For the most recent version, see 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 diff --git a/template.html b/template.html index b17d285..4c64524 100644 --- a/template.html +++ b/template.html @@ -46,6 +46,19 @@ pre.html { background-color: #C9CaCE; } pre.html span.space:after { border: 1px solid #666; } +#watermark { + position:fixed; + bottom:0px; + left:0px; + padding: 1em; + width: 100%; + font-size: 120%; + opacity:0.7; + z-index:99; + background-color: black; + color: white; +} +#watermark a { color: white; } div.examplenum { font-size: 82%; text-align: left; } a.dingus { color: red; } a.footnoteRef > sup:before { @@ -87,6 +100,7 @@ $for(author)$$author$$sep$; $endfor$
$toc$
+
$body$ -- cgit v1.2.3 From cc7788cf62999d317626301960f83d42219acb7e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 27 Oct 2014 12:38:01 -0700 Subject: Improved (interact) links in spec. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Link now has pointer cursor. - → is converted to tab. Closes #174. --- template.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'template.html') diff --git a/template.html b/template.html index 4c64524..24b2372 100644 --- a/template.html +++ b/template.html @@ -60,7 +60,7 @@ pre.html span.space:after { } #watermark a { color: white; } div.examplenum { font-size: 82%; text-align: left; } -a.dingus { color: red; } +a.dingus { color: red; cursor: pointer; } a.footnoteRef > sup:before { content: "["; } @@ -78,7 +78,8 @@ $$(document).ready(function() { $$("div.example").each(function(e) { var t = $$(this).find('pre.markdown > code').text(); $$(this).find('a.dingus').click(function(f) { - window.open('/dingus.html?text=' + encodeURIComponent(t)); + window.open('/dingus.html?text=' + + encodeURIComponent(t.replace(/→/g,"\t"))); }); }); $$("pre.markdown").dblclick(function(e) { window.open('/dingus.html?text=' + -- cgit v1.2.3 From 388b70aac60e9058e86ab922ab95d254e9f64a7b Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 27 Oct 2014 13:58:55 -0700 Subject: Fixed watermark. - No longer shows blank watermark on recent version. - Fixed broken Makefile. --- Makefile | 5 +++-- template.html | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'template.html') 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/