1
0
mirror of https://github.com/golang/go synced 2024-11-22 03:14:41 -07:00

godoc: static ids should be #lowercase

so they don't collide with names like #Index.
Fixes #2970.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5655066
This commit is contained in:
Rob Pike 2012-02-13 14:34:30 +11:00
parent 97235a769f
commit 80e2472f87

View File

@ -10,18 +10,18 @@
<dd><code>import "{{html .ImportPath}}"</code></dd>
</dl>
<dl>
<dd><a href="#Overview">Overview</a></dd>
<dd><a href="#Index">Index</a></dd>
<dd><a href="#overview">Overview</a></dd>
<dd><a href="#index">Index</a></dd>
{{if $.Dirs}}
<dd><a href="#Subdirectories">Subdirectories</a></dd>
{{end}}
</dl>
</div>
<h2 id="Overview">Overview</h2>
<h2 id="overview">Overview</h2>
<!-- The package's Name is printed as title by the top-level template -->
{{comment_html .Doc}}
<h2 id="Index">Index</h2>
<h2 id="index">Index</h2>
<!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
<div id="manual-nav">
<dl>
@ -65,14 +65,14 @@
</dl>
{{with .Consts}}
<h2 id="Constants">Constants</h2>
<h2 id="constants">Constants</h2>
{{range .}}
{{comment_html .Doc}}
<pre>{{node_html .Decl $.FSet}}</pre>
{{end}}
{{end}}
{{with .Vars}}
<h2 id="Variables">Variables</h2>
<h2 id="variables">Variables</h2>
{{range .}}
{{comment_html .Doc}}
<pre>{{node_html .Decl $.FSet}}</pre>
@ -122,7 +122,7 @@
{{end}}
{{with .Bugs}}
<h2 id="Bugs">Bugs</h2>
<h2 id="bugs">Bugs</h2>
{{range .}}
{{comment_html .}}
{{end}}
@ -145,7 +145,7 @@
{{with .Dirs}}
{{/* DirList entries are numbers and strings - no need for FSet */}}
<h2 id="Subdirectories">Subdirectories</h2>
<h2 id="subdirectories">Subdirectories</h2>
<p>
<table class="layout">
<tr>