Skip to content

Commit 78772ab

Browse files
committed
Bump fork of gopages to get new godoc features 136c9c9
1 parent 116f7d7 commit 78772ab

File tree

7 files changed

+2040
-2040
lines changed

7 files changed

+2040
-2040
lines changed

lib/godoc/package.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
{{if $.IsMain}}
1919
{{/* command documentation */}}
20-
{{comment_html .Doc}}
20+
{{comment_html $ .Doc}}
2121
{{else}}
2222
{{/* package documentation */}}
2323
<div id="short-nav">
@@ -42,7 +42,7 @@ <h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2
4242
</div>
4343
<div class="expanded">
4444
<h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
45-
{{comment_html .Doc}}
45+
{{comment_html $ .Doc}}
4646
{{example_html $ ""}}
4747
</div>
4848
</div>
@@ -154,14 +154,14 @@ <h2 class="toggleButton" title="Click to hide Internal Call Graph section">Inter
154154
{{with .Consts}}
155155
<h2 id="pkg-constants">Constants</h2>
156156
{{range .}}
157-
{{comment_html .Doc}}
157+
{{comment_html $ .Doc}}
158158
<pre>{{node_html $ .Decl true}}</pre>
159159
{{end}}
160160
{{end}}
161161
{{with .Vars}}
162162
<h2 id="pkg-variables">Variables</h2>
163163
{{range .}}
164-
{{comment_html .Doc}}
164+
{{comment_html $ .Doc}}
165165
<pre>{{node_html $ .Decl true}}</pre>
166166
{{end}}
167167
{{end}}
@@ -174,7 +174,7 @@ <h2 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a
174174
{{if $since}}<span title="Added in Go {{$since}}">{{$since}}</span>{{end}}
175175
</h2>
176176
<pre>{{node_html $ .Decl true}}</pre>
177-
{{comment_html .Doc}}
177+
{{comment_html $ .Doc}}
178178
{{example_html $ .Name}}
179179
{{callgraph_html $ "" .Name}}
180180

@@ -187,16 +187,16 @@ <h2 id="{{$tname_html}}">type <a href="{{posLink_url $ .Decl}}">{{$tname_html}}<
187187
{{$since := since "type" "" .Name $.PDoc.ImportPath}}
188188
{{if $since}}<span title="Added in Go {{$since}}">{{$since}}</span>{{end}}
189189
</h2>
190-
{{comment_html .Doc}}
190+
{{comment_html $ .Doc}}
191191
<pre>{{node_html $ .Decl true}}</pre>
192192

193193
{{range .Consts}}
194-
{{comment_html .Doc}}
194+
{{comment_html $ .Doc}}
195195
<pre>{{node_html $ .Decl true}}</pre>
196196
{{end}}
197197

198198
{{range .Vars}}
199-
{{comment_html .Doc}}
199+
{{comment_html $ .Doc}}
200200
<pre>{{node_html $ .Decl true}}</pre>
201201
{{end}}
202202

@@ -212,7 +212,7 @@ <h3 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a
212212
{{if $since}}<span title="Added in Go {{$since}}">{{$since}}</span>{{end}}
213213
</h3>
214214
<pre>{{node_html $ .Decl true}}</pre>
215-
{{comment_html .Doc}}
215+
{{comment_html $ .Doc}}
216216
{{example_html $ .Name}}
217217
{{callgraph_html $ "" .Name}}
218218
{{end}}
@@ -225,7 +225,7 @@ <h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="{{posLink
225225
{{if $since}}<span title="Added in Go {{$since}}">{{$since}}</span>{{end}}
226226
</h3>
227227
<pre>{{node_html $ .Decl true}}</pre>
228-
{{comment_html .Doc}}
228+
{{comment_html $ .Doc}}
229229
{{$name := printf "%s_%s" $tname .Name}}
230230
{{example_html $ $name}}
231231
{{callgraph_html $ .Recv .Name}}
@@ -238,7 +238,7 @@ <h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="{{posLink
238238
<h2 id="pkg-note-{{$marker}}">{{noteTitle $marker | html}}s</h2>
239239
<ul style="list-style: none; padding: 0;">
240240
{{range .}}
241-
<li><a href="{{posLink_url $ .}}" style="float: left;">&#x261e;</a> {{comment_html .Body}}</li>
241+
<li><a href="{{posLink_url $ .}}" style="float: left;">&#x261e;</a> {{comment_html $ .Body}}</li>
242242
{{end}}
243243
</ul>
244244
{{end}}

lib/godoc/searchdoc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h2 id="{{$key.Name}}">{{$key.Name}}</h2>
1515
<a href="/{{$pkg_html}}">{{html .Package}}</a>.<a href="{{$doc_html}}">{{.Name}}</a>
1616
{{end}}
1717
{{if .Doc}}
18-
<p>{{comment_html .Doc}}</p>
18+
<p>{{comment_html $ .Doc}}</p>
1919
{{else}}
2020
<p><em>No documentation available</em></p>
2121
{{end}}

0 commit comments

Comments
 (0)