1
0
mirror of https://github.com/golang/go synced 2024-11-25 04:27:56 -07:00

Add id attribute to h2 and h3 tags so that they exist when referring

to generated pages even if Javascript has not introduced them yet.

R=rsc
https://golang.org/cl/154167
This commit is contained in:
Robert Griesemer 2009-11-16 15:25:16 -08:00
parent e86afaf456
commit af872b2ba4
2 changed files with 12 additions and 12 deletions

View File

@ -23,14 +23,14 @@
{.end} {.end}
{.end} {.end}
{.section Consts} {.section Consts}
<h2>Constants</h2> <h2 id="Constants">Constants</h2>
{.repeated section @} {.repeated section @}
{Doc|html-comment} {Doc|html-comment}
<pre>{Decl|html}</pre> <pre>{Decl|html}</pre>
{.end} {.end}
{.end} {.end}
{.section Vars} {.section Vars}
<h2>Variables</h2> <h2 id="Variables">Variables</h2>
{.repeated section @} {.repeated section @}
{Doc|html-comment} {Doc|html-comment}
<pre>{Decl|html}</pre> <pre>{Decl|html}</pre>
@ -38,14 +38,14 @@
{.end} {.end}
{.section Funcs} {.section Funcs}
{.repeated section @} {.repeated section @}
<h2>func <a href="{Decl|link}">{Name|html}</a></h2> <h2 id="{Name|html}">func <a href="{Decl|link}">{Name|html}</a></h2>
<p><code>{Decl|html}</code></p> <p><code>{Decl|html}</code></p>
{Doc|html-comment} {Doc|html-comment}
{.end} {.end}
{.end} {.end}
{.section Types} {.section Types}
{.repeated section @} {.repeated section @}
<h2>type <a href="{Decl|link}">{Type.Name|html}</a></h2> <h2 id="{Type.Name|html}">type <a href="{Decl|link}">{Type.Name|html}</a></h2>
{Doc|html-comment} {Doc|html-comment}
<p><pre>{Decl|html}</pre></p> <p><pre>{Decl|html}</pre></p>
{.repeated section Consts} {.repeated section Consts}
@ -57,26 +57,26 @@
<pre>{Decl|html}</pre> <pre>{Decl|html}</pre>
{.end} {.end}
{.repeated section Factories} {.repeated section Factories}
<h3>func <a href="{Decl|link}">{Name|html}</a></h3> <h3 id="{Type.Name|html}.{Name|html}">func <a href="{Decl|link}">{Name|html}</a></h3>
<p><code>{Decl|html}</code></p> <p><code>{Decl|html}</code></p>
{Doc|html-comment} {Doc|html-comment}
{.end} {.end}
{.repeated section Methods} {.repeated section Methods}
<h3>func ({Recv|html}) <a href="{Decl|link}">{Name|html}</a></h3> <h3 id="{Type.Name|html}.{Name|html}">func ({Recv|html}) <a href="{Decl|link}">{Name|html}</a></h3>
<p><code>{Decl|html}</code></p> <p><code>{Decl|html}</code></p>
{Doc|html-comment} {Doc|html-comment}
{.end} {.end}
{.end} {.end}
{.end} {.end}
{.section Bugs} {.section Bugs}
<h2>Bugs</h2> <h2 id="Bugs">Bugs</h2>
{.repeated section @} {.repeated section @}
{@|html-comment} {@|html-comment}
{.end} {.end}
{.end} {.end}
{.end} {.end}
{.section Dirs} {.section Dirs}
<h2>Subdirectories</h2> <h2 id="Subdirectories">Subdirectories</h2>
<p> <p>
<table class="layout"> <table class="layout">
<tr> <tr>

View File

@ -20,9 +20,9 @@
{.end} {.end}
{.section Hit} {.section Hit}
{.section Decls} {.section Decls}
<h2>Package-level declarations</h2> <h2 id="Global">Package-level declarations</h2>
{.repeated section @} {.repeated section @}
<h3>package <a href="{Pak.Path|path}">{Pak.Name|html}</a></h3> <h3 id="Global_{Pak.Path|path}">package <a href="{Pak.Path|path}">{Pak.Name|html}</a></h3>
{.repeated section Files} {.repeated section Files}
{.repeated section Groups} {.repeated section Groups}
{.repeated section Infos} {.repeated section Infos}
@ -34,9 +34,9 @@
{.end} {.end}
{.end} {.end}
{.section Others} {.section Others}
<h2>Local declarations and uses</h2> <h2 id="Local">Local declarations and uses</h2>
{.repeated section @} {.repeated section @}
<h3>package <a href="{Pak.Path|path}">{Pak.Name|html}</a></h3> <h3 id="Local_{Pak.Path|path}">package <a href="{Pak.Path|path}">{Pak.Name|html}</a></h3>
{.repeated section Files} {.repeated section Files}
<a href="{File.Path|html}?h={Query|html}">{File.Path|html}</a> <a href="{File.Path|html}?h={Query|html}">{File.Path|html}</a>
<table class="layout"> <table class="layout">