summaryrefslogtreecommitdiff
path: root/lib/godoc/search.html
AgeCommit message (Collapse)AuthorFilesLines
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-0/+4
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-13/+36
2010-03-24godoc: show relative file names without leading '/' (per r's request)Robert Griesemer1-6/+6
- change the various url-xxx formatters to return a relative URL path - make the leading '/' for URLs explicit in the template - on the way change some |html formatters to |html-esc (html should only be used for formatting AST nodes) R=rsc, r CC=golang-dev http://codereview.appspot.com/740041
2010-02-19remove absolute paths from search resultsRobert Griesemer1-2/+2
R=adg CC=golang-dev http://codereview.appspot.com/216053
2010-02-16godoc support for directories outside $GOROOTRobert Griesemer1-5/+5
Example use: godoc -path=/home/user1:/home/build/foo -http=:6666 will start a local godoc that maps urls starting with /pkg/user1 or /pkg/foo to the respective roots specified in the path. Missing: Handling of overlapping package directories, multiple packages per directory. R=rsc CC=golang-dev http://codereview.appspot.com/206078
2010-01-13Distinguish between html generation and html quoting in godoc formatters.Robert Griesemer1-4/+4
Replacement for CL 184084; originally by Roger Peppe (rogpeppe@gmail.com). R=rsc CC=golang-dev, rog http://codereview.appspot.com/189059
2009-11-16Add id attribute to h2 and h3 tags so that they exist when referringRobert Griesemer1-4/+4
to generated pages even if Javascript has not introduced them yet. R=rsc http://codereview.appspot.com/154167
2009-11-09cleanup style:Robert Griesemer1-5/+5
- consistently remove all underbars from links - this removes need for noline style - removed unused info style R=r, rsc http://go/go-review/1025032
2009-11-08Addressing issue brought up by dsymonds:Robert Griesemer1-3/+7
- When providing alternative spellings to a query, do not prefix it with a package qualifier as the suggestion may not have any results. Correctly filtering is quite a bit of work, and clicking the alternative spelling will always also show the qualified hits if they exist (but also others). Seems good enough for now. - Give user feedback when the query syntax was wrong. - Package names in search results are now links to the respective package documentation. - Experimented with excluding main packages and test files from index with inconclusive results. Code is present and can be enabled by changing a flag in the source. This needs some more work. R=rsc CC=r, dsymonds http://go/go-review/1026033
2009-11-08use grouping instead of colors to show non-global search hits:Robert Griesemer1-20/+19
- introduced a new run per file containing all spots belonging to the same kind (e.g. var decl, const decl, etc.) - more comments, better index.go file organization R=rsc http://go/go-review/1026028
2009-10-28- added missing formatters in templatesRobert Griesemer1-1/+1
- replaced deprecated use of </font> with </span> tag - added html escaping to godoc formatters where missing - enabled text format for package documentation R=rsc http://go/go-review/1017001
2009-10-27godoc search bug fixes:Robert Griesemer1-1/+1
- 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
2009-10-27code search for godoc:Robert Griesemer1-0/+65
- 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