aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2011-05-02 13:28:02 -0700
committerRobert Griesemer <gri@golang.org>2011-05-02 13:28:02 -0700
commitc783e68ff50f75347d3a0d06a30b690d460fc936 (patch)
tree0f9db38b56dcc73f07f41add41539f69d3edf182 /lib
parentf279a939290eb527f60241d488029803d3d2ed19 (diff)
downloadgo-c783e68ff50f75347d3a0d06a30b690d460fc936.tar.xz
godoc: added -index flag to enable/disable search index
Fixes #1647. R=adg, rsc1, r2, rsc, r CC=golang-dev https://golang.org/cl/4444083
Diffstat (limited to 'lib')
-rw-r--r--lib/godoc/godoc.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/godoc/godoc.html b/lib/godoc/godoc.html
index 837f53c483..24fce22cdc 100644
--- a/lib/godoc/godoc.html
+++ b/lib/godoc/godoc.html
@@ -33,7 +33,9 @@
<a href="/pkg/">Packages</a> <span class="sep">|</span>
<a href="/cmd/">Commands</a> <span class="sep">|</span>
<a href="/doc/go_spec.html">Specification</a>
+ {.section SearchBox}
<input id="search" type="search" name="q" value="{.section Query}{Query|html-esc}{.end}" class="{.section Query}{.or}inactive{.end}" placeholder="code search" results="0" />
+ {.end}
</form>
</div>
</div>