1
0
mirror of https://github.com/golang/go synced 2024-11-18 10:14:45 -07:00

go.tools/godoc: fix search heading anchors

Right now they're all "Global" so you can't click use the table of
contents headings for "Types", "Functions", and "Methods".

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/118100043
This commit is contained in:
Andrew Gerrand 2014-07-23 09:59:58 +10:00
parent e5d15a9781
commit 63db0771ef
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
-->
{{range $key, $val := .Idents}}
{{if $val}}
<h2 id="Global">{{$key.Name}}</h2>
<h2 id="{{$key.Name}}">{{$key.Name}}</h2>
{{range $val}}
{{$pkg_html := pkgLink .Path | html}}
{{if eq "Packages" $key.Name}}

View File

@ -2601,7 +2601,7 @@ function PlaygroundOutput(el) {
-->
{{range $key, $val := .Idents}}
{{if $val}}
<h2 id="Global">{{$key.Name}}</h2>
<h2 id="{{$key.Name}}">{{$key.Name}}</h2>
{{range $val}}
{{$pkg_html := pkgLink .Path | html}}
{{if eq "Packages" $key.Name}}