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