From e7f453148c22789660ad064107ffa7e2541ae740 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Thu, 4 Oct 2012 11:21:37 +1000 Subject: [PATCH] godoc: show contents in correct order, expand sections on click R=dsymonds CC=gobot, golang-dev https://golang.org/cl/6588079 --- doc/godocs.js | 2 ++ lib/godoc/package.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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}} -- 2.48.1