summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* codereview: protect against read-only upstream repositoryShenghou Ma2012-10-201-1/+2
| | | | | | R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/6742053
* codereview.py: Fix crash on auth error handling.Uriel Mangado2012-10-111-9/+11
| | | | | | | | | | | | In recent Python versions .reason is a read-only property that simply gives you the msg value. Fixes issue 4024 R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/6545052 Committer: Shenghou Ma <minux.ma@gmail.com>
* godoc: add dropdown playground to nav barAndrew Gerrand2012-10-102-5/+29
| | | | | | R=gri, dsymonds, skybrian CC=golang-dev http://codereview.appspot.com/6631057
* godoc: fetch jQuery via httpsAndrew Gerrand2012-10-081-1/+1
| | | | | | R=rsc, bradfitz CC=golang-dev http://codereview.appspot.com/6614064
* codereview: more mercurial interface fixesShenghou Ma2012-10-081-14/+14
| | | | | | | | Fixes issue 4131. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/6614061
* lib/godoc/godoc.html: try Google hosted jQuery first, fallback to locally ↵Shenghou Ma2012-10-041-1/+2
| | | | | | | | hosted one R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/6593078
* godoc: make examples editable and runnable in playgroundAndrew Gerrand2012-10-042-5/+60
| | | | | | R=dsymonds CC=golang-dev http://codereview.appspot.com/6523045
* godoc: add jQuery to Go repository, rewrite godocs.js to use jQueryAndrew Gerrand2012-10-041-1/+2
| | | | | | | | | For golang.org I intend to rewrite the jquery link in godoc.html to point to the Google-hosted jquery.js. R=dsymonds, minux.ma CC=golang-dev http://codereview.appspot.com/6589071
* godoc: show contents in correct order, expand sections on clickAndrew Gerrand2012-10-041-2/+2
| | | | | | R=dsymonds CC=gobot, golang-dev http://codereview.appspot.com/6588079
* godoc: move Examples above Index and make them both collapsableAndrew Gerrand2012-10-031-11/+27
| | | | | | R=golang-dev, dsymonds, bradfitz, r CC=golang-dev http://codereview.appspot.com/6591066
* codereview.py: suggest installing Mercurial from official websiteRobert Hencke2012-10-031-5/+1
| | | | | | | | | | Continuation of http://codereview.appspot.com/6499053/ R=golang-dev, minux.ma CC=golang-dev http://codereview.appspot.com/6584059 Committer: Rob Pike <r@golang.org>
* codereview: use subprocess.call() instead of os.spawnvp() for portabilityShivakumar GN2012-09-271-1/+1
| | | | | | | | | | Fixes issue 4121. R=golang-dev, minux.ma, dave, r CC=golang-dev http://codereview.appspot.com/6555049 Committer: Shenghou Ma <minux.ma@gmail.com>
* codereview.py: correct error handling without decoratorUriel Mangado2012-09-011-45/+32
| | | | | | | | | | | | | | | | The decorator hides the number of function arguments from Mercurial, so Mercurial cannot give proper error messages about commands invoked with the wrong number of arguments. Left a 'dummy' hgcommand decorator in place as a way to document what functions are hg commands, and just in case we need some other kind of hack in the future. R=adg, rsc CC=golang-dev http://codereview.appspot.com/6488059 Committer: Russ Cox <rsc@golang.org>
* godoc: report error for directories with multiple packagesRobert Griesemer2012-08-092-22/+0
| | | | | | | | Fixes issue 3922. R=rsc, adg CC=golang-dev http://codereview.appspot.com/6453094
* godoc: make id attributes uniqueRobert Griesemer2012-08-071-15/+24
| | | | | | | | | | | | | | | Some browsers (e.g. IE9) ignore the case of 'id' attributes which can lead to conflicts. Prefix non-generated 'id's with "pkg-" to make them different from any generated attribute. Also: Added missing entry for "Other packages" to top-level index. Fixes issue 3851. R=adg, dsymonds CC=golang-dev http://codereview.appspot.com/6449105
* website: various html fixesDave Cheney2012-07-112-3/+3
| | | | | | | | | | Fixes issue 3424. R=fullung, adg CC=golang-dev http://codereview.appspot.com/6343088 Committer: Andrew Gerrand <adg@golang.org>
* codereview: support mercurial 2.2.1Shenghou Ma2012-05-171-0/+4
| | | | | | | | | | We explicitly use plainformatter to avoid the user's debug setting changing our behavior. Fixes issue 3603. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/6201069
* codereview: look for new release branchesRuss Cox2012-04-251-6/+5
| | | | | | | | R=adg CC=golang-dev http://codereview.appspot.com/6127048 Committer: Andrew Gerrand <adg@golang.org>
* doc: don't wrap package names in directory listingAndrew Gerrand2012-04-201-2/+2
| | | | | | | | Fixes issue 3522. R=golang-dev, dsymonds CC=golang-dev http://codereview.appspot.com/6063054
* codereview: restore help messagesAnthony Martin2012-04-171-0/+1
| | | | | | | | | Docstrings were not being set for the wrapper functions returned by the hgcommand decorator. R=golang-dev, minux.ma, rsc CC=golang-dev http://codereview.appspot.com/6059043
* codereview: give advice on 'cannot create CL outside default branch'Russ Cox2012-04-021-1/+1
| | | | | | | | Fixes issue 3430. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5981047
* godoc: replace servePage's positional argument listRobert Griesemer2012-03-301-2/+2
| | | | | | R=golang-dev, adg, bradfitz CC=golang-dev http://codereview.appspot.com/5869050
* doc: link to Go Project Dashboard from package listAndrew Gerrand2012-03-281-0/+3
| | | | | | R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5937048
* doc: update licensing text one more timeAndrew Gerrand2012-03-271-3/+5
| | | | | | R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5916046
* doc: update footer textAndrew Gerrand2012-03-271-2/+3
| | | | | | R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5920043
* doc: add Terms of ServiceAndrew Gerrand2012-03-271-2/+3
| | | | | | R=r CC=golang-dev http://codereview.appspot.com/5913044
* doc: Change id of footerBenny Siegert2012-03-261-1/+1
| | | | | | | | | | | | | The heading "Copyright" uses id="copyright" as the anchor name. However, there is also a <div id="copyright"> at the bottom. Using the same ID value twice in the same file is illegal (http://www.w3.org/TR/html401/struct/links.html#h-12.2.3). R=golang-dev, bradfitz, rsc CC=golang-dev http://codereview.appspot.com/5909045 Committer: Brad Fitzpatrick <bradfitz@golang.org>
* godoc: make 'Overview' section collapsableAndrew Gerrand2012-03-262-6/+13
| | | | | | | | This makes packages with lengthly package comments easier to browse. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5901055
* godoc: use shorter titles for tabsRobert Griesemer2012-03-211-1/+1
| | | | | | | | | | | | | | | In a browser with many open tabs, the tab titles become short and uninformative because they all start with the same prefix ("Package ", "Directory ", etc.). Permit use of shorter tab titles that start with the relevant information first. Fixes issue 3365. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5865056
* lib/godoc: removing leading / from search linksRuss Cox2012-03-151-5/+5
| | | | | | | | | | | srcLink includes the / now; adding another yields //, which means something else entirely in URLs. Fixes issue 3327. R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/5823060
* godoc: style example headings like linksAndrew Gerrand2012-03-151-2/+2
| | | | | | R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/5819048
* godoc: use elastic layout for most pagesAndrew Gerrand2012-03-131-7/+3
| | | | | | | | | We use the absence of a Title to detect the front page. I can't find other pages without titles, so this seems reasonable. R=golang-dev, bradfitz, gri CC=golang-dev http://codereview.appspot.com/5797076
* codereview: fix for Mercurial 2.1Russ Cox2012-03-121-0/+33
| | | | | | | | | Mercurial: the Python of version control systems. Python: the Mercurial of programming languages. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5777066
* godoc: switch on +1 buttonsAndrew Gerrand2012-03-061-2/+0
| | | | | | R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5754048
* doc: add more gophersAndrew Gerrand2012-03-061-1/+7
| | | | | | R=golang-dev, bradfitz, r CC=golang-dev http://codereview.appspot.com/5753047
* cmd/godoc: remove extra / in pathsUgorji Nwoke2012-03-051-4/+4
| | | | | | | | | | | | | | | | | If I click on links which should send you to source code (e.g. type, function, etc), the link is to //src/... (instead of /src/...). This causes a DNS resolution failure on the browser. Quick fix is to remove the leading / from package.html (since godoc.go src links automatically add a leading / as necessary). Fixes issue 3193. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5730059 Committer: Russ Cox <rsc@golang.org>
* godoc: support $GOPATH, simplify file system codeRuss Cox2012-03-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The motivation for this CL is to support $GOPATH well. Since we already have a FileSystem interface, implement a Plan 9-style name space. Bind each of the $GOPATH src directories onto the $GOROOT src/pkg directory: now everything is laid out exactly like a normal $GOROOT and needs very little special case code. The filter files are no longer used (by us), so I think they can just be deleted. Similarly, the Mapping code and the FileSystem interface were two different ways to accomplish the same end, so delete the Mapping code. Within the implementation, since FileSystem is defined to be slash-separated, use package path consistently, leaving path/filepath only for manipulating operating system paths. I kept the -path flag, but I think it can be deleted too. Fixes issue 2234. Fixes issue 3046. R=gri, r, r, rsc CC=golang-dev http://codereview.appspot.com/5711058
* doc: change menu, tweak front pageAndrew Gerrand2012-03-051-4/+5
| | | | | | R=golang-dev, kyle, r CC=golang-dev http://codereview.appspot.com/5729052
* godoc: hide "Subdirectories" subheading if it is the only sectionAndrew Gerrand2012-03-041-1/+1
| | | | | | R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5731056
* godoc: add Examples link to top-level indexAndrew Gerrand2012-02-281-1/+4
| | | | | | R=golang-dev CC=golang-dev http://codereview.appspot.com/5702043
* godoc: don't show directories w/o packages in flat dir modeRobert Griesemer2012-02-272-13/+19
| | | | | | | | | | | | | The main change is simple: Both the Directory and DirEntry struct have an extra field 'HasPkg' indicating whether the directory contains any package files. The remaining changes are more comments and adjustments to the template files. Fixes issue 3121. R=golang-dev, bradfitz, sameer CC=golang-dev http://codereview.appspot.com/5699072
* godoc: consistent placement of documentation sectionsRobert Griesemer2012-02-231-8/+13
| | | | | | | | Fixes issue 1226. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5694052
* godoc: support flat directory view againAndrew Gerrand2012-02-221-1/+5
| | | | | | R=bradfitz CC=golang-dev http://codereview.appspot.com/5690058
* codereview: add submit message support for newer clone URL and subreposShenghou Ma2012-02-211-2/+10
| | | | | | | | R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5689063 Committer: Russ Cox <rsc@golang.org>
* godoc: fix tag mismatch validation errorsScott Lawrence2012-02-201-2/+1
| | | | | | | | R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5676099 Committer: Rob Pike <r@golang.org>
* lib/time/zoneinfo: deleteRuss Cox2012-02-19581-0/+0
| | | | | | | | Now in zoneinfo.zip. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5671098
* time: switch to using (uncompressed) zoneinfo zip fileRuss Cox2012-02-193-8/+14
| | | | | | | | Removal of old zoneinfo files is a separate CL due to its size. R=golang-dev, bradfitz, r CC=golang-dev http://codereview.appspot.com/5676100
* time: add zoneinfo files, mainly for non-Unix systemsRuss Cox2012-02-18581-0/+0
| | | | | | | | Generated by lib/time/update.bash. R=bradfitz CC=golang-dev http://codereview.appspot.com/5676096
* lib/time: add README, update.bash scriptRuss Cox2012-02-182-0/+54
| | | | | | R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5674104
* godoc: show example function doc comments in UIAndrew Gerrand2012-02-161-2/+3
| | | | | | R=gri CC=golang-dev http://codereview.appspot.com/5677061