Граф коммитов

517 Коммитов

Автор SHA1 Сообщение Дата
Andrew Gerrand a99b6294c2 Merge pull request #331 from fiorix/master
Fix link to snappy for #326
2015-10-01 08:59:24 +10:00
Alexandre Fiori 2cd7c68c39 Fix link to snappy for #326 2015-09-30 15:38:00 -04:00
Gary Burd 1420a81bc8 Improve synopsis text indexing
- Recognize and ignore boilerplate in some common synopsis sentence
  patterns.
- Remove 'implement' and 'implements' from the list of stop words. Rely
  on the previous item to filter out the term in "Package foo
  implements ...".
2015-09-30 06:23:34 -07:00
Andrew Gerrand 8dab6303bc Merge pull request #329 from shurcooL/fix-example-double-div
Fix example code double-div rendering regression.
2015-09-28 16:17:04 +10:00
Andrew Gerrand dc8de5d933 Merge pull request #325 from garyburd/redir
Enforce HTTPS on godoc.org
2015-09-28 13:35:09 +10:00
Dmitri Shuralyov 94d68b7a5c Fix example code double-div rendering regression.
In c494ad61ef, codeFn was refactored to additionally write <pre> and </pre>. Most of the instances of {{code ...}} in templates were updated accordingly, but this one was missed.

As a result, after that commit, the example was written with a double-div.
2015-09-26 14:53:48 -07:00
Andrew Gerrand 8e99ca76af Merge pull request #324 from garyburd/master
Follow redirect in search API
2015-09-26 08:57:52 +10:00
Gary Burd 10e887189f Follow redirect in search API
Fixes #233.
2015-09-25 15:19:13 -07:00
Gary Burd 9b25f0e64e HTTPS redirect cleanup
- Merge httpsEnforcerHandler and hostMux handlers to rootHandler.
- Set host name in redirect.
- Strip port when comparing host names.
- Do not set includeSubdomains parameter in HSTS header as api.godoc.org
  is not served via http.
2015-09-25 15:16:46 -07:00
Jeff Hodges c291f4d36b enforce HTTPS
Redirect HTTP links to HTTPS and set HSTS correctly.

This is specific to the godoc.org set up (with nginx passing a X-Scheme
header back) and without fixing up api.godoc.org.

Fixes #304.
2015-09-25 00:36:33 -07:00
Andrew Gerrand 1dc9385907 Merge pull request #311 from shurcooL/increase-contrast-readability
Increase font contrast, use code highlighting theme of golang.org.
2015-09-10 14:31:52 +10:00
Dmitri Shuralyov cb58823446 Increase font contrast, use code highlighting theme of golang.org.
Resolves #297.

Use green for comments. It's consistent with golang.org and has higher
contrast (against background).

Use slightly darker black for code. It's consistent with golang.org and
has higher contrast.
2015-09-05 01:31:12 -07:00
Andrew Gerrand 82f6182856 Merge pull request #307 from shurcooL/use-https
gosrc: Use https to get list of valid TLDs.
2015-08-26 09:03:38 +10:00
Dmitri Shuralyov ab3f5d3b68 gosrc: Use https to get list of valid TLDs.
It seems like a good idea to use https rather than http when fetching the list of TLDs.
2015-08-25 15:56:12 -07:00
Andrew Gerrand 43daf76c78 Merge pull request #306 from garyburd/master
Update to latest TLDs and Go packages.
2015-08-26 08:33:00 +10:00
Gary Burd ccc5c2798e Update to latest TLDs and Go packages.
The update was generated automatically using the 'go generate' command.

Fixes #305.
2015-08-25 08:15:29 -07:00
Andrew Gerrand cdbf56515e Merge pull request #300 from ChrisHines/master
Update for changes to github.com/golang/snappy API.
2015-08-10 10:19:56 +10:00
Chris Hines 1ba8153046 Update for changes to github.com/golang/snappy API. 2015-08-07 16:29:02 -04:00
Andrew Gerrand 964066a509 Merge pull request #296 from alexcesaro/expand_example
Expand linked example again
2015-07-28 13:01:25 +10:00
Alexandre Cesaro 6bb4b71386 Expand linked example again
Fixes #295
2015-07-25 16:56:57 +02:00
Andrew Gerrand 759db06db1 Merge pull request #294 from shurcooL/patch-1
Update snappy import path.
2015-07-20 09:18:30 +10:00
Dmitri Shuralyov 4cfc2b69b5 Update snappy import path.
It has recently changed in https://github.com/golang/snappy/pull/14#issuecomment-122197952.
2015-07-17 16:12:39 -07:00
Andrew Gerrand eb1f515e0b Merge pull request #282 from mdlayher/master
Extend RFC regex to support multiple subsections
2015-07-16 16:06:50 +10:00
Andrew Gerrand 8dcf5fbec2 Merge pull request #284 from golang/secrets
Make github credentials compulsory to avoid bad deployments
2015-07-02 08:17:59 +10:00
Francesc Campoy 81c0b798b4 use url.Values to encode the github credentials 2015-07-01 12:18:16 -07:00
Francesc Campoy 340040c94a removing unwanted change 2015-07-01 12:13:12 -07:00
Andrew Gerrand 4b7097905d Merge pull request #283 from golang/email
Email
2015-07-01 08:34:37 +10:00
Francesc Campoy 60b66aca12 remove unused config.go.template 2015-06-30 12:17:54 -07:00
Francesc Campoy 0addd2c6ff remove changes on lintapp 2015-06-30 10:21:57 -07:00
Francesc Campoy 0d09525749 Merge branch 'email' of https://github.com/golang/gddo into email 2015-06-30 10:16:37 -07:00
Francesc Campoy d852d26673 fix contact email 2015-06-30 10:15:39 -07:00
Francesc Campoy cd1c2414cd fix contact email 2015-06-29 17:08:07 -07:00
Francesc Campoy 43219cb1ab fix contact email 2015-06-29 17:06:15 -07:00
Matt Layher ffa7e5fd36 Extend RFC regex to support multiple subsections 2015-06-29 14:36:23 -04:00
Andrew Gerrand 1b04f691e2 Merge pull request #277 from garyburd/import
Import garyburd/talksapp and garyburd/lintapp
2015-06-23 11:30:38 +10:00
Gary Burd 50b6fe2bae Import talksapp 2015-06-19 17:38:53 -07:00
Gary Burd f2c2de4475 Import lintapp 2015-06-19 17:38:53 -07:00
Gary Burd 0403ed28f7 Cleanup for merge to gddo
- Update paths to for new home in golang/gddo repo.
- Relicense to Go authors
2015-06-19 06:53:53 -07:00
Gary Burd bdf4e3451e Cleanup for merge to gddo
- Remove license file.
- Update paths to for new home in golang/gddo repo.
- Update setup.sh to new golang/x paths.
2015-06-19 06:52:52 -07:00
Andrew Gerrand c6c04a3165 Merge pull request #276 from mdlayher/master
Add links to RFC sections, if available
2015-06-16 06:32:14 +10:00
Matt Layher c6752c8ab6 Add links to RFC sections, if available 2015-06-15 15:44:42 -04:00
Andrew Gerrand 078d131691 Merge pull request #274 from garyburd/issue_270
Handle vanity redirect to godoc.org
2015-06-15 14:48:44 +10:00
Gary Burd bec6de54da Handle vanity redirect to godoc.org
Gddo assumes that the project URL for a vanity import is the page
containing the go-import meta tag for the vanity path.

This change sets the project URL to the resolved package project URL in
the case where the page uses an http-equiv meta tag to redirect the user
back to godoc.org.

Here's an example. The vanity import path "rsc.io/benchstat" resolves to
"gitbub.com/rsc/benchstat". The page at "http://rsc.io/benchstat" has an
http-equiv meta tag the refreshes to "https://godoc.org/rsc.io/benchstat".

Prior to this change, the project name in the gray banner at the top of
the package documentation page linked to "http://rsc.io/benchstat". The
page on rsc.io redirects the user back to the package documentation
page. Clicking the link is a noop.

After this change, the project name in the gray banner links to
https://github.com/rsc/benchstat".

This is a partial fix to issue #270. This change does not handle the
case  where the vanity server responds with an HTTP redirect when
?go-get=1 query is not specified.
2015-06-14 21:43:46 -07:00
Andrew Gerrand 229ccc762a Merge pull request #273 from garyburd/issue-268
Run VCS commands with a timeout
2015-06-10 13:28:51 -07:00
Gary Burd c2b20edf92 Run VCS commands with a timeout
Fixes issue #268.
2015-06-10 12:51:55 -07:00
Andrew Gerrand 013a89927b Merge pull request #272 from stephens2424/patch-1
Updating snappy import path
2015-06-08 15:39:55 -07:00
Stephen Searles cc6aa40d15 Updating snappy import path 2015-06-08 15:37:42 -07:00
Andrew Gerrand 4523d2f070 Merge pull request #263 from nwjlyons/master
Disable zoom when focusing search input on mobile Safari.
2015-05-21 16:43:30 +10:00
Andrew Gerrand 309f8824a9 Merge pull request #262 from garyburd/decllink
Link declarations to source
2015-05-21 16:41:01 +10:00
Andrew Gerrand 8fd1b85dc1 Merge pull request #266 from yukinying/git-ssh-protocol
support ssh:// for git
2015-05-21 16:40:15 +10:00