mirror of
https://github.com/golang/go
synced 2024-11-18 16:04:44 -07:00
Revert "godoc: accessible permalinks"
This reverts commit f57adc1821
.
Reason for revert: See https://github.com/golang/go/issues/22171#issuecomment-339125376 for reasoning.
Change-Id: Ifd81ad716cf2acdf7a1d73602ac781186aca5596
Reviewed-on: https://go-review.googlesource.com/73150
Reviewed-by: Andrew Bonventre <andybons@golang.org>
This commit is contained in:
parent
9bd2f44268
commit
5ec91747d9
@ -314,7 +314,7 @@ function addPermalinks() {
|
|||||||
// Already attached.
|
// Already attached.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
parent.append(" ").append($("<a class='permalink' title='permalink' aria-label='permalink'>¶</a>").attr("href", "#" + id));
|
parent.append(" ").append($("<a class='permalink'>¶</a>").attr("href", "#" + id));
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#page .container").find("h2[id], h3[id]").each(function() {
|
$("#page .container").find("h2[id], h3[id]").each(function() {
|
||||||
|
@ -166,7 +166,7 @@
|
|||||||
{{/* Name is a string - no need for FSet */}}
|
{{/* Name is a string - no need for FSet */}}
|
||||||
{{$name_html := html .Name}}
|
{{$name_html := html .Name}}
|
||||||
<h2 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
<h2 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
||||||
<a class="permalink" title="permalink" aria-label="permalink" href="#{{$name_html}}">¶</a>
|
<a class="permalink" href="#{{$name_html}}">¶</a>
|
||||||
</h2>
|
</h2>
|
||||||
<pre>{{node_html $ .Decl true}}</pre>
|
<pre>{{node_html $ .Decl true}}</pre>
|
||||||
{{comment_html .Doc}}
|
{{comment_html .Doc}}
|
||||||
@ -178,7 +178,7 @@
|
|||||||
{{$tname := .Name}}
|
{{$tname := .Name}}
|
||||||
{{$tname_html := html .Name}}
|
{{$tname_html := html .Name}}
|
||||||
<h2 id="{{$tname_html}}">type <a href="{{posLink_url $ .Decl}}">{{$tname_html}}</a>
|
<h2 id="{{$tname_html}}">type <a href="{{posLink_url $ .Decl}}">{{$tname_html}}</a>
|
||||||
<a class="permalink" title="permalink" aria-label="permalink" href="#{{$tname_html}}">¶</a>
|
<a class="permalink" href="#{{$tname_html}}">¶</a>
|
||||||
</h2>
|
</h2>
|
||||||
{{comment_html .Doc}}
|
{{comment_html .Doc}}
|
||||||
<pre>{{node_html $ .Decl true}}</pre>
|
<pre>{{node_html $ .Decl true}}</pre>
|
||||||
@ -200,7 +200,7 @@
|
|||||||
{{range .Funcs}}
|
{{range .Funcs}}
|
||||||
{{$name_html := html .Name}}
|
{{$name_html := html .Name}}
|
||||||
<h3 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
<h3 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
||||||
<a class="permalink" title="permalink" aria-label="permalink" href="#{{$name_html}}">¶</a>
|
<a class="permalink" href="#{{$name_html}}">¶</a>
|
||||||
</h3>
|
</h3>
|
||||||
<pre>{{node_html $ .Decl true}}</pre>
|
<pre>{{node_html $ .Decl true}}</pre>
|
||||||
{{comment_html .Doc}}
|
{{comment_html .Doc}}
|
||||||
@ -211,7 +211,7 @@
|
|||||||
{{range .Methods}}
|
{{range .Methods}}
|
||||||
{{$name_html := html .Name}}
|
{{$name_html := html .Name}}
|
||||||
<h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
<h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
||||||
<a class="permalink" title="permalink" aria-label="permalink" href="#{{$tname_html}}.{{$name_html}}">¶</a>
|
<a class="permalink" href="#{{$tname_html}}.{{$name_html}}">¶</a>
|
||||||
</h3>
|
</h3>
|
||||||
<pre>{{node_html $ .Decl true}}</pre>
|
<pre>{{node_html $ .Decl true}}</pre>
|
||||||
{{comment_html .Doc}}
|
{{comment_html .Doc}}
|
||||||
|
@ -900,7 +900,7 @@ function addPermalinks() {
|
|||||||
// Already attached.
|
// Already attached.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
parent.append(" ").append($("<a class='permalink' title='permalink' aria-label='permalink'>¶</a>").attr("href", "#" + id));
|
parent.append(" ").append($("<a class='permalink'>¶</a>").attr("href", "#" + id));
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#page .container").find("h2[id], h3[id]").each(function() {
|
$("#page .container").find("h2[id], h3[id]").each(function() {
|
||||||
@ -1789,7 +1789,7 @@ function cgAddChild(tree, ul, cgn) {
|
|||||||
{{/* Name is a string - no need for FSet */}}
|
{{/* Name is a string - no need for FSet */}}
|
||||||
{{$name_html := html .Name}}
|
{{$name_html := html .Name}}
|
||||||
<h2 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
<h2 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
||||||
<a class="permalink" title="permalink" aria-label="permalink" href="#{{$name_html}}">¶</a>
|
<a class="permalink" href="#{{$name_html}}">¶</a>
|
||||||
</h2>
|
</h2>
|
||||||
<pre>{{node_html $ .Decl true}}</pre>
|
<pre>{{node_html $ .Decl true}}</pre>
|
||||||
{{comment_html .Doc}}
|
{{comment_html .Doc}}
|
||||||
@ -1801,7 +1801,7 @@ function cgAddChild(tree, ul, cgn) {
|
|||||||
{{$tname := .Name}}
|
{{$tname := .Name}}
|
||||||
{{$tname_html := html .Name}}
|
{{$tname_html := html .Name}}
|
||||||
<h2 id="{{$tname_html}}">type <a href="{{posLink_url $ .Decl}}">{{$tname_html}}</a>
|
<h2 id="{{$tname_html}}">type <a href="{{posLink_url $ .Decl}}">{{$tname_html}}</a>
|
||||||
<a class="permalink" title="permalink" aria-label="permalink" href="#{{$tname_html}}">¶</a>
|
<a class="permalink" href="#{{$tname_html}}">¶</a>
|
||||||
</h2>
|
</h2>
|
||||||
{{comment_html .Doc}}
|
{{comment_html .Doc}}
|
||||||
<pre>{{node_html $ .Decl true}}</pre>
|
<pre>{{node_html $ .Decl true}}</pre>
|
||||||
@ -1823,7 +1823,7 @@ function cgAddChild(tree, ul, cgn) {
|
|||||||
{{range .Funcs}}
|
{{range .Funcs}}
|
||||||
{{$name_html := html .Name}}
|
{{$name_html := html .Name}}
|
||||||
<h3 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
<h3 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
||||||
<a class="permalink" title="permalink" aria-label="permalink" href="#{{$name_html}}">¶</a>
|
<a class="permalink" href="#{{$name_html}}">¶</a>
|
||||||
</h3>
|
</h3>
|
||||||
<pre>{{node_html $ .Decl true}}</pre>
|
<pre>{{node_html $ .Decl true}}</pre>
|
||||||
{{comment_html .Doc}}
|
{{comment_html .Doc}}
|
||||||
@ -1834,7 +1834,7 @@ function cgAddChild(tree, ul, cgn) {
|
|||||||
{{range .Methods}}
|
{{range .Methods}}
|
||||||
{{$name_html := html .Name}}
|
{{$name_html := html .Name}}
|
||||||
<h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
<h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
||||||
<a class="permalink" title="permalink" aria-label="permalink" href="#{{$tname_html}}.{{$name_html}}">¶</a>
|
<a class="permalink" href="#{{$tname_html}}.{{$name_html}}">¶</a>
|
||||||
</h3>
|
</h3>
|
||||||
<pre>{{node_html $ .Decl true}}</pre>
|
<pre>{{node_html $ .Decl true}}</pre>
|
||||||
{{comment_html .Doc}}
|
{{comment_html .Doc}}
|
||||||
@ -2937,6 +2937,13 @@ a:hover,
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.permalink {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
:hover > .permalink {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
p, li {
|
p, li {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
@ -60,6 +60,13 @@ a:hover,
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.permalink {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
:hover > .permalink {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
p, li {
|
p, li {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
Loading…
Reference in New Issue
Block a user