diff --git a/godoc/static/godocs.js b/godoc/static/godocs.js index 5177c302..cec8823d 100644 --- a/godoc/static/godocs.js +++ b/godoc/static/godocs.js @@ -209,7 +209,7 @@ function setupInlinePlayground() { code.on('keyup', resize); code.keyup(); // resize now. }; - + // If example already visible, set up playground now. if ($(el).is(':visible')) { setup(); @@ -343,7 +343,7 @@ function addPermalinks() { // Already attached. return; } - parent.append(" ").append($("").attr("href", "#" + id)); + parent.append(" ").append($("").attr("href", "#" + id)); } $("#page .container").find("h2[id], h3[id]").each(function() { diff --git a/godoc/static/package.html b/godoc/static/package.html index 6dc88e69..85c9ca35 100644 --- a/godoc/static/package.html +++ b/godoc/static/package.html @@ -166,7 +166,7 @@ {{/* Name is a string - no need for FSet */}} {{$name_html := html .Name}}

func {{$name_html}} - +

{{node_html $ .Decl true}}
{{comment_html .Doc}} @@ -178,7 +178,7 @@ {{$tname := .Name}} {{$tname_html := html .Name}}

type {{$tname_html}} - +

{{comment_html .Doc}}
{{node_html $ .Decl true}}
@@ -200,7 +200,7 @@ {{range .Funcs}} {{$name_html := html .Name}}

func {{$name_html}} - +

{{node_html $ .Decl true}}
{{comment_html .Doc}} @@ -211,7 +211,7 @@ {{range .Methods}} {{$name_html := html .Name}}

func ({{html .Recv}}) {{$name_html}} - +

{{node_html $ .Decl true}}
{{comment_html .Doc}} diff --git a/godoc/static/static.go b/godoc/static/static.go index b0543560..66fa5db7 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -795,7 +795,7 @@ function setupInlinePlayground() { code.on('keyup', resize); code.keyup(); // resize now. }; - + // If example already visible, set up playground now. if ($(el).is(':visible')) { setup(); @@ -929,7 +929,7 @@ function addPermalinks() { // Already attached. return; } - parent.append(" ").append($("").attr("href", "#" + id)); + parent.append(" ").append($("").attr("href", "#" + id)); } $("#page .container").find("h2[id], h3[id]").each(function() { @@ -1819,7 +1819,7 @@ function cgAddChild(tree, ul, cgn) { {{/* Name is a string - no need for FSet */}} {{$name_html := html .Name}}

func {{$name_html}} - +

{{node_html $ .Decl true}}
{{comment_html .Doc}} @@ -1831,7 +1831,7 @@ function cgAddChild(tree, ul, cgn) { {{$tname := .Name}} {{$tname_html := html .Name}}

type {{$tname_html}} - +

{{comment_html .Doc}}
{{node_html $ .Decl true}}
@@ -1853,7 +1853,7 @@ function cgAddChild(tree, ul, cgn) { {{range .Funcs}} {{$name_html := html .Name}}

func {{$name_html}} - +

{{node_html $ .Decl true}}
{{comment_html .Doc}} @@ -1864,7 +1864,7 @@ function cgAddChild(tree, ul, cgn) { {{range .Methods}} {{$name_html := html .Name}}

func ({{html .Recv}}) {{$name_html}} - +

{{node_html $ .Decl true}}
{{comment_html .Doc}} @@ -2968,13 +2968,6 @@ a:hover, text-decoration: none; } -.permalink { - display: none; -} -: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 41e3908e..16c96846 100644 --- a/godoc/static/style.css +++ b/godoc/static/style.css @@ -61,13 +61,6 @@ a:hover, text-decoration: none; } -.permalink { - display: none; -} -:hover > .permalink { - display: inline; -} - p, li { max-width: 800px; word-wrap: break-word;