diff options
author | Robert Griesemer <gri@golang.org> | 2013-04-02 12:05:14 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2013-04-02 12:05:14 -0700 |
commit | 184506fba82f047587a2eec7478acb9b7e88cf65 (patch) | |
tree | 761a0541a78b8e881abb219ffd772eabee339d82 /lib | |
parent | 8b6ddfa2d4ec033830cd58c14e06330c23339888 (diff) | |
download | go-184506fba82f047587a2eec7478acb9b7e88cf65.tar.gz |
cmd/godoc: don't linkify index entries
Fixes issue 5186.
R=bradfitz
CC=golang-dev
https://codereview.appspot.com/8267044
Diffstat (limited to 'lib')
-rw-r--r-- | lib/godoc/package.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/godoc/package.html b/lib/godoc/package.html index a7d47298a..aefbef9fd 100644 --- a/lib/godoc/package.html +++ b/lib/godoc/package.html @@ -60,18 +60,18 @@ {{end}} {{range .Funcs}} {{$name_html := html .Name}} - <dd><a href="#{{$name_html}}">{{node_html $ .Decl}}</a></dd> + <dd><a href="#{{$name_html}}">{{node_html $ .Decl false}}</a></dd> {{end}} {{range .Types}} {{$tname_html := html .Name}} <dd><a href="#{{$tname_html}}">type {{$tname_html}}</a></dd> {{range .Funcs}} {{$name_html := html .Name}} - <dd> <a href="#{{$name_html}}">{{node_html $ .Decl}}</a></dd> + <dd> <a href="#{{$name_html}}">{{node_html $ .Decl false}}</a></dd> {{end}} {{range .Methods}} {{$name_html := html .Name}} - <dd> <a href="#{{$tname_html}}.{{$name_html}}">{{node_html $ .Decl}}</a></dd> + <dd> <a href="#{{$tname_html}}.{{$name_html}}">{{node_html $ .Decl false}}</a></dd> {{end}} {{end}} {{if $.Notes}} @@ -109,14 +109,14 @@ {{with .Consts}} <h2 id="pkg-constants">Constants</h2> {{range .}} - <pre>{{node_html $ .Decl}}</pre> + <pre>{{node_html $ .Decl true}}</pre> {{comment_html .Doc}} {{end}} {{end}} {{with .Vars}} <h2 id="pkg-variables">Variables</h2> {{range .}} - <pre>{{node_html $ .Decl}}</pre> + <pre>{{node_html $ .Decl true}}</pre> {{comment_html .Doc}} {{end}} {{end}} @@ -124,7 +124,7 @@ {{/* Name is a string - no need for FSet */}} {{$name_html := html .Name}} <h2 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a></h2> - <pre>{{node_html $ .Decl}}</pre> + <pre>{{node_html $ .Decl true}}</pre> {{comment_html .Doc}} {{example_html $ .Name}} {{end}} @@ -132,16 +132,16 @@ {{$tname := .Name}} {{$tname_html := html .Name}} <h2 id="{{$tname_html}}">type <a href="{{posLink_url $ .Decl}}">{{$tname_html}}</a></h2> - <pre>{{node_html $ .Decl}}</pre> + <pre>{{node_html $ .Decl true}}</pre> {{comment_html .Doc}} {{range .Consts}} - <pre>{{node_html $ .Decl}}</pre> + <pre>{{node_html $ .Decl true}}</pre> {{comment_html .Doc}} {{end}} {{range .Vars}} - <pre>{{node_html $ .Decl}}</pre> + <pre>{{node_html $ .Decl true}}</pre> {{comment_html .Doc}} {{end}} @@ -150,7 +150,7 @@ {{range .Funcs}} {{$name_html := html .Name}} <h3 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a></h3> - <pre>{{node_html $ .Decl}}</pre> + <pre>{{node_html $ .Decl true}}</pre> {{comment_html .Doc}} {{example_html $ .Name}} {{end}} @@ -158,7 +158,7 @@ {{range .Methods}} {{$name_html := html .Name}} <h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a></h3> - <pre>{{node_html $ .Decl}}</pre> + <pre>{{node_html $ .Decl true}}</pre> {{comment_html .Doc}} {{$name := printf "%s_%s" $tname .Name}} {{example_html $ $name}} @@ -179,7 +179,7 @@ {{end}} {{with .PAst}} - <pre>{{node_html $ .}}</pre> + <pre>{{node_html $ . false}}</pre> {{end}} {{with .Dirs}} |