diff options
author | Andrew Gerrand <adg@golang.org> | 2012-01-19 18:59:06 +1100 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2012-01-19 18:59:06 +1100 |
commit | 39cf01785c6a7dfc83c4f8c23012611e0903080e (patch) | |
tree | 645d8881f3f566fe41d1ceb1b4fb141b79a52e50 /lib | |
parent | 9f29d7072c5f7859cc6683553102e62b731e49e2 (diff) | |
download | go-39cf01785c6a7dfc83c4f8c23012611e0903080e.tar.gz |
godoc: add anchors to cmd documentation headings
Also, disable server-side generation of TOC for commands as they would
only ever show Overview. The JS does a better job (for now).
Fixes issue 2732.
R=gri, dsymonds
CC=golang-dev
http://codereview.appspot.com/5558046
Diffstat (limited to 'lib')
-rw-r--r-- | lib/godoc/package.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/godoc/package.html b/lib/godoc/package.html index 155f24032..5a7f3ef97 100644 --- a/lib/godoc/package.html +++ b/lib/godoc/package.html @@ -3,6 +3,7 @@ Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> +{{if .IsPkg}} <!-- Table of contents; must be named manual-nav to turn off auto nav. --> <div id="manual-nav"> {{with .PDoc}} @@ -37,6 +38,7 @@ </dl> {{end}} </div> +{{end}} <!-- Main page --> {{with .PAst}} |