From e3fd2e1ec6a540ce73d7fd8ebf06a2468d2fa584 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 27 Oct 2009 16:08:12 -0700 Subject: [PATCH] godoc search bug fixes: - sort by package name (instead of package path) for results with snippets - sort line numbers in results without snippets - properly characterize package clauses - experiment with a leaner look: no underlines for top-level godoc links in the left side bar Still using colors to distinguish results. Next step. R=rsc http://go/go-review/1015016 --- doc/style.css | 5 ++++ lib/godoc/godoc.html | 22 +++++++------- lib/godoc/search.html | 2 +- src/cmd/godoc/godoc.go | 1 + src/cmd/godoc/index.go | 68 ++++++++++++++++++++++++++++++++++-------- 5 files changed, 74 insertions(+), 24 deletions(-) diff --git a/doc/style.css b/doc/style.css index 84c29c077b3..d2dd7c9022f 100644 --- a/doc/style.css +++ b/doc/style.css @@ -167,6 +167,11 @@ span.highlight { /* ------------------------------------------------------------------------- */ /* Styles used by infoClassFmt */ +a.package { + text-decoration: none; + background-color: #FFFFFF; +} + a.import { text-decoration: none; background-color: #D8D8D8; diff --git a/lib/godoc/godoc.html b/lib/godoc/godoc.html index b77a1301bb7..df8ee882a06 100644 --- a/lib/godoc/godoc.html +++ b/lib/godoc/godoc.html @@ -25,26 +25,26 @@