From 63db0771efeb718903ce6591f799516106d3112b Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Wed, 23 Jul 2014 09:59:58 +1000 Subject: [PATCH] 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 --- godoc/static/searchdoc.html | 2 +- godoc/static/static.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/godoc/static/searchdoc.html b/godoc/static/searchdoc.html index 99e1f035..3b64b179 100644 --- a/godoc/static/searchdoc.html +++ b/godoc/static/searchdoc.html @@ -5,7 +5,7 @@ --> {{range $key, $val := .Idents}} {{if $val}} -

{{$key.Name}}

+

{{$key.Name}}

{{range $val}} {{$pkg_html := pkgLink .Path | html}} {{if eq "Packages" $key.Name}} diff --git a/godoc/static/static.go b/godoc/static/static.go index 2b6b0121..b2a00a56 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -2601,7 +2601,7 @@ function PlaygroundOutput(el) { --> {{range $key, $val := .Idents}} {{if $val}} -

{{$key.Name}}

+

{{$key.Name}}

{{range $val}} {{$pkg_html := pkgLink .Path | html}} {{if eq "Packages" $key.Name}}