Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(847)

Unified Diff: utils/apidoc/app_engine/scripts/redirector.py

Issue 10829148: use continuous as build name (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: update gyp file Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/apidoc/apidoc.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/app_engine/scripts/redirector.py
diff --git a/utils/apidoc/app_engine/scripts/redirector.py b/utils/apidoc/app_engine/scripts/redirector.py
index 235d0b5c984267f00e819048da1bebcce71ba6a9..6b8ff2b5802a0c8477a4084f88dea0faf90e1404 100644
--- a/utils/apidoc/app_engine/scripts/redirector.py
+++ b/utils/apidoc/app_engine/scripts/redirector.py
@@ -47,9 +47,9 @@ class ApiDocs(blobstore_handlers.BlobstoreDownloadHandler):
return age
def resolve_doc_path(self):
- if self.request.path.startswith('/docs/latest'):
+ if self.request.path.startswith('/docs/continuous'):
version = self.get_latest_version()
- path = self.request.path.replace('/docs/latest',
+ path = self.request.path.replace('/docs/continuous',
'/gs/dartlang-api-docs/' + str(version))
else:
path = self.request.path.replace('/docs', '/gs/dartlang-api-docs')
@@ -106,12 +106,12 @@ class ApiDocs(blobstore_handlers.BlobstoreDownloadHandler):
def redir_to_latest(handler, *args, **kwargs):
path = kwargs['path']
if re.search(r'^(core|coreimpl|crypto|io|isolate|json|uri|utf|web)', path):
- return '/docs/latest/dart_' + path
+ return '/docs/continuous/dart_' + path
else:
- return '/docs/latest/' + path
+ return '/docs/continuous/' + path
def redir_dom(handler, *args, **kwargs):
- return '/docs/latest/dart_html' + kwargs['path']
+ return '/docs/continuous/dart_html' + kwargs['path']
application = WSGIApplication(
[
« no previous file with comments | « utils/apidoc/apidoc.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698