summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-03-30 17:37:42 -0700
committerRobert Griesemer <gri@golang.org>2010-03-30 17:37:42 -0700
commitcc0173ab5e3af5e07ff931094d19e14547a88e86 (patch)
treeba119dbca4a9287ec0ce8edfd4514075b2052738 /lib
parent1aa5147c2f68e164a80aee8c427d9a782d64ff9d (diff)
downloadgolang-cc0173ab5e3af5e07ff931094d19e14547a88e86.tar.gz
godoc: support for title and subtitle headers when serving .html docs
and use it to show version (date) of go spec Fixes issue 68. R=rsc CC=golang-dev, r http://codereview.appspot.com/848042
Diffstat (limited to 'lib')
-rw-r--r--lib/godoc/godoc.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/godoc/godoc.html b/lib/godoc/godoc.html
index 99cd55eae..dd2179981 100644
--- a/lib/godoc/godoc.html
+++ b/lib/godoc/godoc.html
@@ -133,11 +133,18 @@
</div>
{.end}
- <h1 id="generatedHeader">{Title|html-esc}</h1>
+ {.section Title}
+ <h1 id="generatedHeader">{@|html-esc}</h1>
+ {.end}
+ {.section Subtitle}
+ <span class="subtitle">{@|html-esc}</span>
+ {.end}
+ <p>
<!-- The Table of Contents is automatically inserted in this <div>.
Do not delete this <div>. -->
<div id="nav"></div>
+ </p>
<!-- Content is HTML-escaped elsewhere -->
{Content}