diff --git a/godoc/static/godocs.js b/godoc/static/godocs.js index 5177c30248..cec8823d47 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 6dc88e6942..85c9ca3536 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}}
{{node_html $ .Decl true}}
{{comment_html .Doc}}
@@ -178,7 +178,7 @@
{{$tname := .Name}}
{{$tname_html := html .Name}}
{{node_html $ .Decl true}}
@@ -200,7 +200,7 @@
{{range .Funcs}}
{{$name_html := html .Name}}
{{node_html $ .Decl true}}
{{comment_html .Doc}}
@@ -211,7 +211,7 @@
{{range .Methods}}
{{$name_html := html .Name}}
{{node_html $ .Decl true}}
{{comment_html .Doc}}
diff --git a/godoc/static/static.go b/godoc/static/static.go
index b054356020..66fa5db76d 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}}
{{node_html $ .Decl true}}
{{comment_html .Doc}}
@@ -1831,7 +1831,7 @@ function cgAddChild(tree, ul, cgn) {
{{$tname := .Name}}
{{$tname_html := html .Name}}
{{node_html $ .Decl true}}
@@ -1853,7 +1853,7 @@ function cgAddChild(tree, ul, cgn) {
{{range .Funcs}}
{{$name_html := html .Name}}
{{node_html $ .Decl true}}
{{comment_html .Doc}}
@@ -1864,7 +1864,7 @@ function cgAddChild(tree, ul, cgn) {
{{range .Methods}}
{{$name_html := html .Name}}
{{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 41e3908ea7..16c96846f4 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;