mirror of
https://github.com/golang/go
synced 2024-11-18 11:04:42 -07:00
cmd/godoc: show the BUG section
This will match the default behavior when running locally. In fact, our http://blog.golang.org/godoc-documenting-go-code explicitly documents this feature (see also golang.org/cl/1953). Change-Id: I581b17b60229ce70900cb51d548d1e2a34df41ba Signed-off-by: Shenghou Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/2116 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
79d60d6e2c
commit
f72c7f7642
@ -13,6 +13,7 @@ import (
|
||||
"archive/zip"
|
||||
"log"
|
||||
"path"
|
||||
"regexp"
|
||||
|
||||
"golang.org/x/tools/godoc"
|
||||
"golang.org/x/tools/godoc/static"
|
||||
@ -56,6 +57,7 @@ func init() {
|
||||
pres.ShowPlayground = true
|
||||
pres.ShowExamples = true
|
||||
pres.DeclLinks = true
|
||||
pres.NotesRx = regexp.MustCompile("BUG")
|
||||
|
||||
readTemplates(pres, true)
|
||||
registerHandlers(pres)
|
||||
|
Loading…
Reference in New Issue
Block a user