Commit 64bc38eb authored by Andrew Gerrand's avatar Andrew Gerrand

godoc: add Examples link to top-level index

R=golang-dev
CC=golang-dev
https://golang.org/cl/5702043
parent 26c2443d
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment