From: Robert Griesemer Date: Tue, 27 Oct 2009 17:34:31 +0000 (-0700) Subject: code search for godoc: X-Git-Tag: weekly.2009-11-06~191 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=32810a5dedf058c12d18c51375e321460bbe887f;p=gostls13.git code search for godoc: - added goroutine to automatically index in the background - added handler for search requests - added search box to top-level godoc template - added search.html template for the display of search results - changes to spec.go because of name conflicts - added extra styles to style.css (for shorter .html files) R=rsc http://go/go-review/1014011 --- diff --git a/doc/style.css b/doc/style.css index cd344df9cf..84c29c077b 100644 --- a/doc/style.css +++ b/doc/style.css @@ -151,10 +151,54 @@ div#linkList li.navhead { /* ------------------------------------------------------------------------- */ /* Styles used by go/printer Styler implementations. */ +a.noline { + text-decoration: none; +} + span.comment { color: #0000a0; } span.highlight { - background-color: #00ff00; + background-color: #81F781; +} + + +/* ------------------------------------------------------------------------- */ +/* Styles used by infoClassFmt */ + +a.import { + text-decoration: none; + background-color: #D8D8D8; +} + +a.const { + text-decoration: none; + background-color: #F5A9A9; +} + +a.type { + text-decoration: none; + background-color: #F2F5A9; +} + +a.var { + text-decoration: none; + background-color: #A9F5A9; +} + +a.func { + text-decoration: none; + background-color: #A9D0F5; +} + +a.method { + text-decoration: none; + background-color: #D0A9F5; +} + +a.use { + text-decoration: none; + color: #FFFFFF; + background-color: #5858FA; } diff --git a/lib/godoc/godoc.html b/lib/godoc/godoc.html index ddde999a16..b77a1301bb 100644 --- a/lib/godoc/godoc.html +++ b/lib/godoc/godoc.html @@ -4,7 +4,7 @@ - {title} + {Title} @@ -37,29 +37,35 @@
  • Language Design FAQ
  • Go for C++ Programmers
  • +
  •  
  • + +
  • Install Go
  • +
  • Contribute code
  • +
  •  
  • Package documentation
  •  
  • - -
  • Install Go
  • -
  • Contribute code
  • + +