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