mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Drop godoc handling.
This commit is contained in:
@@ -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/.*
|
||||
|
||||
@@ -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-]*/?$`)
|
||||
|
||||
Reference in New Issue
Block a user