From: Andrew Gerrand Date: Thu, 4 Oct 2012 01:21:37 +0000 (+1000) Subject: godoc: show contents in correct order, expand sections on click X-Git-Tag: go1.1rc2~2262 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e7f453148c22789660ad064107ffa7e2541ae740;p=gostls13.git godoc: show contents in correct order, expand sections on click R=dsymonds CC=gobot, golang-dev https://golang.org/cl/6588079 --- diff --git a/doc/godocs.js b/doc/godocs.js index 8fd32fef0f..b1ad3b28c3 100644 --- a/doc/godocs.js +++ b/doc/godocs.js @@ -208,6 +208,8 @@ function godocs_onload() { godocs_bindToggles("toggleVisible"); godocs_bindToggleLinks("exampleLink", "example_"); godocs_bindToggleLinks("overviewLink", ""); + godocs_bindToggleLinks("examplesLink", ""); + godocs_bindToggleLinks("indexLink", ""); } bindEvent(window, 'load', godocs_onload); diff --git a/lib/godoc/package.html b/lib/godoc/package.html index ae574827d6..3c0dfa41bf 100644 --- a/lib/godoc/package.html +++ b/lib/godoc/package.html @@ -17,10 +17,10 @@
Overview
-
Index
{{if $.Examples}} -
Examples
+
Examples
{{end}} +
Index
{{if $.Dirs}}
Subdirectories
{{end}}