diff options
author | Adin Scannell <ascannell@google.com> | 2019-04-01 16:54:43 -0700 |
---|---|---|
committer | Adin Scannell <ascannell@google.com> | 2019-04-01 16:56:49 -0700 |
commit | b19b7f3e46ce57bec4b70c7f7ef748295dec558b (patch) | |
tree | c45cf68328f7f2bb4f84dcefebd7b561a6abda8e /cmd/gvisor-website | |
parent | 7c3a00a667415d1b30cea50552f9969e5f2c0cf3 (diff) |
Drop godoc handling.
Diffstat (limited to 'cmd/gvisor-website')
-rw-r--r-- | cmd/gvisor-website/app.yaml | 13 | ||||
-rw-r--r-- | cmd/gvisor-website/main.go | 9 |
2 files changed, 7 insertions, 15 deletions
diff --git a/cmd/gvisor-website/app.yaml b/cmd/gvisor-website/app.yaml index e084bdf69..390fcd7ad 100644 --- a/cmd/gvisor-website/app.yaml +++ b/cmd/gvisor-website/app.yaml @@ -15,16 +15,11 @@ runtime: go111 handlers: + - url: /(change|cl||issue)(/.*)? + secure: always + script: auto - url: /.* secure: always script: auto - # TODO: remove this when published + # TODO: remove this when published. login: admin - # - url: /(change|cl|godoc|issue)(/.*)? - # secure: always - # script: auto - # - url: /(.*) - # secure: always - # redirect_http_response_code: 301 - # static_files: static/\1 - # upload: static/.* diff --git a/cmd/gvisor-website/main.go b/cmd/gvisor-website/main.go index 825a04d59..4c8e7c854 100644 --- a/cmd/gvisor-website/main.go +++ b/cmd/gvisor-website/main.go @@ -28,17 +28,14 @@ import ( var redirects = map[string]string{ "/change": "https://gvisor.googlesource.com/gvisor/", "/cl": "https://gvisor-review.googlesource.com/", - "/godoc": "https://godoc.org/github.com/google/gvisor", "/issue": "https://github.com/google/gvisor/issues", "/issue/new": "https://github.com/google/gvisor/issues/new", } var prefixHelpers = map[string]string{ - "cl": "https://gvisor-review.googlesource.com/c/gvisor/+/%s", - "change": "https://gvisor.googlesource.com/gvisor/+/%s", - "godoc": "https://godoc.org/github.com/google/gvisor/%s", - "issue": "https://github.com/google/gvisor/issues/%s", - "syscall": "/docs/user_guide/compatibility/syscall_reference/#%s", + "cl": "https://gvisor-review.googlesource.com/c/gvisor/+/%s", + "change": "https://gvisor.googlesource.com/gvisor/+/%s", + "issue": "https://github.com/google/gvisor/issues/%s", } var validId = regexp.MustCompile(`^[A-Za-z0-9-]*/?$`) |