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:
parent
e5d15a9781
commit
63db0771ef
@ -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}}
|
||||
|
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user