diff --git a/godoc/static/package.html b/godoc/static/package.html index 7f38c51a..549825bb 100644 --- a/godoc/static/package.html +++ b/godoc/static/package.html @@ -165,7 +165,9 @@ {{range .Funcs}} {{/* Name is a string - no need for FSet */}} {{$name_html := html .Name}} -
{{node_html $ .Decl true}}{{comment_html .Doc}} {{example_html $ .Name}} @@ -175,7 +177,9 @@ {{range .Types}} {{$tname := .Name}} {{$tname_html := html .Name}} -
{{node_html $ .Decl true}}{{comment_html .Doc}} @@ -195,7 +199,9 @@ {{range .Funcs}} {{$name_html := html .Name}} -
{{node_html $ .Decl true}}{{comment_html .Doc}} {{example_html $ .Name}} @@ -204,7 +210,9 @@ {{range .Methods}} {{$name_html := html .Name}} -
{{node_html $ .Decl true}}{{comment_html .Doc}} {{$name := printf "%s_%s" $tname .Name}} diff --git a/godoc/static/static.go b/godoc/static/static.go index 6aadc86a..1bb0bb89 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -1748,7 +1748,9 @@ function cgAddChild(tree, ul, cgn) { {{range .Funcs}} {{/* Name is a string - no need for FSet */}} {{$name_html := html .Name}} -
{{node_html $ .Decl true}}{{comment_html .Doc}} {{example_html $ .Name}} @@ -1758,7 +1760,9 @@ function cgAddChild(tree, ul, cgn) { {{range .Types}} {{$tname := .Name}} {{$tname_html := html .Name}} -
{{node_html $ .Decl true}}{{comment_html .Doc}} @@ -1778,7 +1782,9 @@ function cgAddChild(tree, ul, cgn) { {{range .Funcs}} {{$name_html := html .Name}} -
{{node_html $ .Decl true}}{{comment_html .Doc}} {{example_html $ .Name}} @@ -1787,7 +1793,9 @@ function cgAddChild(tree, ul, cgn) { {{range .Methods}} {{$name_html := html .Name}} -
{{node_html $ .Decl true}}{{comment_html .Doc}} {{$name := printf "%s_%s" $tname .Name}} @@ -2826,6 +2834,14 @@ a:hover, .exampleHeading .text:hover { text-decoration: underline; } + +.permalink { + display: none; +} +h2:hover .permalink, h3:hover .permalink { + display: inline; +} + p, li { max-width: 800px; word-wrap: break-word; diff --git a/godoc/static/style.css b/godoc/static/style.css index 8ea08525..fd26bd85 100644 --- a/godoc/static/style.css +++ b/godoc/static/style.css @@ -42,6 +42,14 @@ a:hover, .exampleHeading .text:hover { text-decoration: underline; } + +.permalink { + display: none; +} +h2:hover .permalink, h3:hover .permalink { + display: inline; +} + p, li { max-width: 800px; word-wrap: break-word;