aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-08-13 23:11:18 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-08-13 23:11:18 -0700
commiteb14dda8e8ffc755b0837e0bc2bb9c62281287d7 (patch)
treead8da8692ece6f717875e7ca3b756301e53b124e
parent0b817259d80d4c340ddba4c83386de9c164d87df (diff)
Use template for HTML version of README.
-rw-r--r--Makefile2
-rw-r--r--template.html4
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 09f62c2..4a86e44 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ PROG=./stmd
all: $(SRCDIR)/case_fold_switch.c $(PROG)
README.html: README.md
- pandoc -S -s -t html5 -o $@ $<
+ pandoc --template template.html -S -s -t html5 -o $@ $<
spec: test spec.html
diff --git a/template.html b/template.html
index 2286c68..5416a07 100644
--- a/template.html
+++ b/template.html
@@ -53,8 +53,12 @@ a.footnoteRef > sup {
</style>
</head>
<body>
+$if(title)$
<h1 class="title">$title$</h1>
+$endif$
+$if(version)$
<div class="version">Version $version$ ($date$)</div>
+$endif$
<div class="authors">
$for(author)$<span class="author">$author$</span>$sep$; $endfor$
</div>