summaryrefslogtreecommitdiff
path: root/lib/godoc
AgeCommit message (Collapse)AuthorFilesLines
2010-02-19remove absolute paths from search resultsRobert Griesemer1-2/+2
R=adg CC=golang-dev http://codereview.appspot.com/216053
2010-02-18godoc: path cleanups, fixed a race condition, initial support for a menu on ↵Robert Griesemer1-0/+7
pages R=rsc CC=adg, golang-dev http://codereview.appspot.com/215050
2010-02-16godoc support for directories outside $GOROOTRobert Griesemer4-17/+16
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-13create doc/talks/.Russ Cox1-1/+1
move talk-20091030 down. add talk given at Stanford 2010/01/12. add doc/go-logo-white.png. R=r CC=golang-dev http://codereview.appspot.com/186132 Committer: Russ Cox <rsc@golang.org>
2010-01-13Distinguish between html generation and html quoting in godoc formatters.Robert Griesemer4-13/+13
Replacement for CL 184084; originally by Roger Peppe (rogpeppe@gmail.com). R=rsc CC=golang-dev, rog http://codereview.appspot.com/189059
2010-01-13godoc: skip template wrapping for complete HTML filesRuss Cox1-1/+1
demo at http://wreck:8080/doc/ click on go_talk-20100112.html R=gri CC=golang-dev http://codereview.appspot.com/186137
2010-01-07add doc/devel/index.html, linked from nav barRuss Cox1-6/+3
R=r CC=golang-dev http://codereview.appspot.com/181156
2009-12-09doc: split contribute.html into code.html and contribute.htmlRuss Cox1-0/+1
R=r http://codereview.appspot.com/170042
2009-12-01some godoc cleanup:Robert Griesemer2-10/+7
- simplified dealing with parse errors: no need to intersperse them in the source - improve visibility of highlighted identifiers by showing them in bold R=rsc http://codereview.appspot.com/163051
2009-11-16Add id attribute to h2 and h3 tags so that they exist when referringRobert Griesemer2-12/+12
to generated pages even if Javascript has not introduced them yet. R=rsc http://codereview.appspot.com/154167
2009-11-10video is readyRuss Cox1-1/+1
R=r http://codereview.prom.corp.google.com/1024050
2009-11-10video is coming soonRuss Cox1-1/+1
R=r http://go/go-review/1024049
2009-11-10update video linksRuss Cox1-1/+1
R=r http://go/go-review/1024048
2009-11-10remove internal references from doc/install.htmlRuss Cox1-1/+2
and doc/contribute.html. add #go-nuts to help section on nav bar. R=r http://go/go-review/1025035
2009-11-09- add .. link to package directory listing, for easy traversalRobert Griesemer1-0/+3
- matches style of source file directory listing R=rsc http://go/go-review/1024044
2009-11-09cleanup style:Robert Griesemer4-28/+28
- 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-09make search box ever so slightly widerRobert Griesemer1-1/+1
R=rsc http://go/go-review/1024036
2009-11-09make search box width dynamically sizedRobert Griesemer1-1/+1
R=rsc, agl http://go/go-review/1024032
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-11-08- properly align package synopsesRobert Griesemer5-15/+27
(this was surprisingly hard to get right in HTML) - show modification times in source directory listings - various tweaks R=rsc http://go/go-review/1024024
2009-11-08links to Go Nuts, issue tracker,Russ Cox1-0/+6
source code browser on code.google.com (where LICENSE file is visible) R=r http://go/go-review/1024023
2009-11-08TBRRobert Griesemer1-23/+0
1st step of renaming dirList.html -> dirlist.html (OS X filenames are not capitalization-sensitive) R=rsc http://go/go-review/1024021
2009-11-08TBRRobert Griesemer1-0/+23
step 2: adding renamed dirlist.html again R=rsc http://go/go-review/1024022
2009-11-07- added link to sourcesRobert Griesemer2-0/+1
- renamed listing.html -> dirList.html (there is a dirs.html already, it should probably have a better name, too) R=rsc http://go/go-review/1025020
2009-11-07nice directory listingsRobert Griesemer1-0/+23
R=rsc http://go/go-review/1026020
2009-11-07fix a few style nits; arrange the doc list inRuss Cox1-6/+6
an order we want people to read the docs. R=r CC=go-dev http://go/go-review/1025017
2009-11-07- support to extract one-line package synopsis for package listingsRobert Griesemer1-1/+1
- formatting in dirs.html is crude, needs better html (open to suggestions), but shows the synopsis - many package comments should probably be adjusted such that the first sentence is more concise R=rsc, iant http://go/go-review/1025014
2009-11-07new style; live at http://r45:3456/Russ Cox1-1/+1
R=r CC=go-dev http://go/go-review/1026015
2009-11-05add a place-holder link for the hour-long videoRob Pike1-0/+1
R=rsc CC=go-dev http://go/go-review/1017054
2009-11-05godoc: style update.Adam Langley1-4/+5
R=r, rsc CC=go-dev http://go/go-review/1017051
2009-11-04remove "em" unit from td width specificationRobert Griesemer1-1/+1
R=rsc http://go/go-review/1018037
2009-11-03Update the styling of the godoc pages.Adam Langley1-12/+61
(root.html is just temporary. It'll need some better content.) R=r CC=go-dev http://go/go-review/1017019
2009-11-03support for command documentation:Robert Griesemer4-10/+19
- made package tree handler generic so it can work on any fs tree - cleanups along the way R=rsc CC=r http://go/go-review/1017020
2009-11-02- show recursive package directory structure in package pagesRobert Griesemer3-11/+15
- removed some underbars in section headings for better looks - various minor tweaks R=rsc http://go/go-review/1018026
2009-11-02- initial steps towards showing directory tree instead ofRobert Griesemer1-0/+6
just a single directory - all pieces present but not well integrated - directory tree served at the moment under /tree R=rsc http://go/go-review/1018016
2009-10-28- added missing formatters in templatesRobert Griesemer3-4/+4
- 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-28html-escaping of fields that may be user-generatedRobert Griesemer1-4/+5
R=rsc http://go/go-review/1013019
2009-10-27godoc search bug fixes:Robert Griesemer2-12/+12
- 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 Griesemer2-7/+78
- 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
2009-10-22main landing pagesRuss Cox1-0/+72
R=r DELTA=55 (7 added, 34 deleted, 14 changed) OCL=35984 CL=35986
2009-10-01Factored out boilerplate from all html docs in doc directory:Robert Griesemer3-16/+17
- the first HTML comment in those files is extracted as page title when serving them - lib/godoc.html is top-level template for all pages served - experimented a bit with package documentation layout (feedback welcome) - various related cleanups TODO: - The / page (doc/root.html) content repeats links that are in the navigation bar. It needs to be cleaned up. R=rsc DELTA=826 (86 added, 692 deleted, 48 changed) OCL=35230 CL=35245
2009-09-17- use new css for godoc templatesRobert Griesemer2-5/+12
- final location of files TBD R=rsc,r DELTA=84 (19 added, 46 deleted, 19 changed) OCL=34758 CL=34761
2009-08-31associate const and var declarations with a type where possibleRobert Griesemer2-0/+16
R=rsc DELTA=105 (87 added, 7 deleted, 11 changed) OCL=34062 CL=34119
2009-08-03printer.go:Robert Griesemer1-4/+4
- emit line tag id's in html mode - support for general html tags - better names for a few identifiers godoc.go: - emit links from exported names to source code (actual placement needs fine-tuning) R=rsc DELTA=108 (68 added, 4 deleted, 36 changed) OCL=32639 CL=32654
2009-07-30go/ast/filter.go:Robert Griesemer1-2/+11
- more orthogonal functionality of filter functions for better re-use go/doc/doc.go: - simplified interface - collect filenames of packages so that they can be shown godoc: - removed TODO, show list of package (linked) files used to create documentation R=rsc DELTA=130 (68 added, 24 deleted, 38 changed) OCL=32549 CL=32552
2009-07-09Show BUG comments in godoc:Robert Griesemer2-0/+15
ast.go: - rename Comments -> CommentGroup (less confusion) - change all comments/docs to be *CommentGroup filter.go: - do not remove unassociated comments from program as part of export filtering (they are needed by doc.go for BUG comments) scanner.go: - exclude '\n' from //-style comments parser.go: - rewrote collection of comments: now all collected comments are *ast.CommentGroups - clarified distinction between leading and trailing comments - fixed a bug in comment collection (parseGenDecl); corresponding test case is in printer/testdata - extra documentation doc.go: - collect BUG comments - corresponding fix for parser bug in comment collection comment.go: - simplified regex printer.go: - adjust comment printing to new representation printer_test.go, testdata/*: - enable printing of doc comments - extended tests package.html, package.txt: - added Bugs section gofmt: - enable printing of doc comments R=rsc DELTA=339 (126 added, 38 deleted, 175 changed) OCL=31403 CL=31416
2009-06-22tweak the newlines so the headers stand out better.Rob Pike1-0/+4
old: CONSTANTS const ( MissingKind = iota; ) new: CONSTANTS const ( MissingKind = iota; ) R=gri,rsc DELTA=4 (4 added, 0 deleted, 0 changed) OCL=30362 CL=30598
2009-06-16delete dreg commentRob Pike1-1/+0
R=rsc OCL=30359 CL=30359
2009-06-16- some fine-tuning of godoc templates per r's suggestionRobert Griesemer1-12/+0
- removed gratuitous newline in go/printer R=r DELTA=15 (2 added, 13 deleted, 0 changed) OCL=30358 CL=30358