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

Side by Side Diff: src/appengine/scripts/redirector.py

Issue 54813003: remove community, redirect to support, clean up support (Closed) Base URL: git@github.com:dart-lang/dartlang.org.git@master
Patch Set: tweaks Created 7 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « src/appengine/app.yaml ('k') | src/site/_includes/header.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 from webapp2 import * 1 from webapp2 import *
2 2
3 NEWS_POSTS = { 3 NEWS_POSTS = {
4 '/2012/01/26/revisiting-equality.html' : '/2012/01/propo sed-changes-for-equality.html', 4 '/2012/01/26/revisiting-equality.html' : '/2012/01/propo sed-changes-for-equality.html',
5 '/2012/01/20/dart-language-spec-0.07.html' : '/2012/01/dart- language-spec-v007-now-available.html', 5 '/2012/01/20/dart-language-spec-0.07.html' : '/2012/01/dart- language-spec-v007-now-available.html',
6 '/2012/01/17/new-editor-build.html' : '/2012/01/new-d art-editor-build-3331.html', 6 '/2012/01/17/new-editor-build.html' : '/2012/01/new-d art-editor-build-3331.html',
7 '/2012/01/10/new-editor-build.html' : '/2012/01/new-d art-editor-build-3101.html', 7 '/2012/01/10/new-editor-build.html' : '/2012/01/new-d art-editor-build-3101.html',
8 '/2012/01/06/getting-started-with-dart.html' : '/2012/01/getti ng-started-with-dart-screencast.html', 8 '/2012/01/06/getting-started-with-dart.html' : '/2012/01/getti ng-started-with-dart-screencast.html',
9 '/2011/12/21/new-api-docs.html' : '/2011/12/new-a pi-docs-site.html', 9 '/2011/12/21/new-api-docs.html' : '/2011/12/new-a pi-docs-site.html',
10 '/2011/12/19/new-editor-build.html' : '/2011/12/new-d art-editor-build-2380.html', 10 '/2011/12/19/new-editor-build.html' : '/2011/12/new-d art-editor-build-2380.html',
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 Route('/docs/editor/troubleshoot.html', RedirectHandler, 144 Route('/docs/editor/troubleshoot.html', RedirectHandler,
145 defaults={'_uri': '/tools/editor/troubleshoot.html'}), 145 defaults={'_uri': '/tools/editor/troubleshoot.html'}),
146 Route('/docs/editor<:/?>', RedirectHandler, 146 Route('/docs/editor<:/?>', RedirectHandler,
147 defaults={'_uri': '/tools/editor/'}), 147 defaults={'_uri': '/tools/editor/'}),
148 Route('/docs/sdk<:/?>', RedirectHandler, 148 Route('/docs/sdk<:/?>', RedirectHandler,
149 defaults={'_uri': '/tools/sdk/'}), 149 defaults={'_uri': '/tools/sdk/'}),
150 Route('/editor<:/?>', RedirectHandler, 150 Route('/editor<:/?>', RedirectHandler,
151 defaults={'_uri': '/tools/editor/'}), 151 defaults={'_uri': '/tools/editor/'}),
152 Route('/dartium/', RedirectHandler, 152 Route('/dartium/', RedirectHandler,
153 defaults={'_uri': '/tools/dartium/'}), 153 defaults={'_uri': '/tools/dartium/'}),
154 Route('/community/', RedirectHandler,
155 defaults={'_uri': '/support/'}),
154 Route('/docs/getting-started/editor/', RedirectHandler, 156 Route('/docs/getting-started/editor/', RedirectHandler,
155 defaults={'_uri': '/docs/dart-up-and-running/contents/ch01.html#ch01-edito r'}), 157 defaults={'_uri': '/docs/dart-up-and-running/contents/ch01.html#ch01-edito r'}),
156 Route('/docs/getting-started/sdk/', RedirectHandler, 158 Route('/docs/getting-started/sdk/', RedirectHandler,
157 defaults={'_uri': '/docs/sdk/'}), 159 defaults={'_uri': '/docs/sdk/'}),
158 Route('/resources/', RedirectHandler, 160 Route('/resources/', RedirectHandler,
159 defaults={'_uri': '/community/'}), 161 defaults={'_uri': '/community/'}),
160 Route('/articles/profiling/', RedirectHandler, 162 Route('/articles/profiling/', RedirectHandler,
161 defaults={'_uri': '/articles/benchmarking/'}), 163 defaults={'_uri': '/articles/benchmarking/'}),
162 Route('/docs/editor/getting-started/', RedirectHandler, 164 Route('/docs/editor/getting-started/', RedirectHandler,
163 defaults={'_uri': '/docs/dart-up-and-running/contents/ch01.html#ch01-edito r'}), 165 defaults={'_uri': '/docs/dart-up-and-running/contents/ch01.html#ch01-edito r'}),
(...skipping 23 matching lines...) Expand all
187 defaults={'_uri': '/docs/dart-up-and-running/contents/ch04-tools-dart2js.h tml'}), 189 defaults={'_uri': '/docs/dart-up-and-running/contents/ch04-tools-dart2js.h tml'}),
188 Route('/+isolates', RedirectHandler, 190 Route('/+isolates', RedirectHandler,
189 defaults={'_uri': '/docs/dart-up-and-running/contents/ch03.html#ch03-darti solate---concurrency-with-isolates'}), 191 defaults={'_uri': '/docs/dart-up-and-running/contents/ch03.html#ch03-darti solate---concurrency-with-isolates'}),
190 Route('/+', RedirectHandler, 192 Route('/+', RedirectHandler,
191 defaults={'_uri': 'https://google.com/+dartlang'}), 193 defaults={'_uri': 'https://google.com/+dartlang'}),
192 Route('/mailing-list', RedirectHandler, 194 Route('/mailing-list', RedirectHandler,
193 defaults={'_uri': 'https://groups.google.com/a/dartlang.org/forum/#!forum/ misc'}), 195 defaults={'_uri': 'https://groups.google.com/a/dartlang.org/forum/#!forum/ misc'}),
194 Route('/<path:[^.]*[^/]$>', RedirectHandler, 196 Route('/<path:[^.]*[^/]$>', RedirectHandler,
195 defaults={'_uri': trailing_slash})], 197 defaults={'_uri': trailing_slash})],
196 debug=True) 198 debug=True)
OLDNEW
« no previous file with comments | « src/appengine/app.yaml ('k') | src/site/_includes/header.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698