godoc: add Examples link to top-level index

R=golang-dev
CC=golang-dev
https://golang.org/cl/5702043
This commit is contained in:
Andrew Gerrand 2012-02-28 16:05:12 +11:00
parent 26c2443d80
commit 64bc38eb85

View file

@ -12,6 +12,9 @@
<dl>
<dd><a href="#overview">Overview</a></dd>
<dd><a href="#index">Index</a></dd>
{{if $.Examples}}
<dd><a href="#examples">Examples</a></dd>
{{end}}
{{if $.Dirs}}
<dd><a href="#subdirectories">Subdirectories</a></dd>
{{end}}
@ -54,7 +57,7 @@
</dl>
{{if $.Examples}}
<h4>Examples</h4>
<h4 id="examples">Examples</h4>
<dl>
{{range $.Examples}}
<dd><a class="exampleLink" href="#example_{{.Name}}">{{example_name .Name}}</a></dd>