From dffdece81928103398e74d1b462bba03eb24552c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 10 Dec 2012 20:20:00 -0500 Subject: [PATCH] godoc: move example list into index section Putting it before the Index (where it is now) is wrong: we don't even know what's in the package yet. Fixes #4484. R=adg, dsymonds CC=golang-dev https://golang.org/cl/6868071 --- lib/godoc/package.html | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/lib/godoc/package.html b/lib/godoc/package.html index a94a43fd095..1a17ad9b9ea 100644 --- a/lib/godoc/package.html +++ b/lib/godoc/package.html @@ -17,10 +17,10 @@
Overview
+
Index
{{if $.Examples}}
Examples
{{end}} -
Index
{{if $.Dirs}}
Subdirectories
{{end}} @@ -38,22 +38,6 @@ {{example_html "" $.Examples $.FSet}} - {{if $.Examples}} -
- -
-

Examples ▾

-
- {{range $.Examples}} -
{{example_name .Name}}
- {{end}} -
-
-
- {{end}} -
+ {{if $.Examples}} +
+

Examples

+
+ {{range $.Examples}} +
{{example_name .Name}}
+ {{end}} +
+
+ {{end}} + {{with .Filenames}}

Package files