1 # WARNING: THIS FILE IS NOT USED IN PRODUCTION
2 # CHANGES MADE HERE **DO NOT EFFECT** developer.android.com
4 # Instead, update the following file in the current docs release branch:
5 # <docs-release-branch>/vendor/google/docs/app-engine-server/v3/redirects.yaml
7 #=============================================================================
9 # This file contains the list of rewrite rules that are applied when serving
10 # pages. Add "pattern: True" to use python regex in to or from.
12 # WATCH OUT -- FROM LINE HAS TO START WITH A HYPHEN
15 - from: ^/sdk/android-(.*$)
16 to: /about/versions/android-\1
19 - from: /about/versions/index.html
22 - from: /about/versions/api-levels.html
23 to: /guide/topics/manifest/uses-sdk-element.html#ApiLevels
25 - from: /sdk/adding-components.html
26 to: /sdk/exploring.html
28 - from: /sdk/compatibility-library.html
29 to: /tools/support-library/index.html
31 - from: /training/basics/fragments/support-lib.html
32 to: /tools/support-library/setup.html
34 - from: /sdk/eclipse-adt.html
35 to: /tools/sdk/eclipse-adt.html
37 - from: /sdk/installing.html
38 to: /sdk/installing/index.html
40 - from: /sdk/installing/next.html
41 to: /training/basics/firstapp/index.html
43 - from: /sdk/ndk/overview.html
44 to: /tools/sdk/ndk/index.html
47 to: /tools/sdk/ndk/...
49 - from: /sdk/oem-usb.html
50 to: /tools/extras/oem-usb.html
52 - from: /sdk/tools-notes.html
53 to: /tools/sdk/tools-notes.html
55 - from: /sdk/requirements.html
58 # ------------------- GUIDE -------------------
60 - from: /guide/market/...
63 - from: /guide/google/gcm/client-javadoc/...
64 to: /reference/com/google/android/gcm/package-summary.html
66 - from: /guide/google/gcm/server-javadoc/...
67 to: /reference/com/google/android/gcm/server/package-summary.html
69 - from: /google/play-services/auth.html
70 to: /google/auth/http-auth.html
72 - from: /guide/google/play/services.html
73 to: /google/play-services/index.html
75 - from: /guide/google/...
78 - from: /guide/publishing/licensing.html
79 to: /google/play/licensing/index.html
81 - from: /google/play/billing/billing_about.html
82 to: /google/play/billing/index.html
84 - from: /guide/developing/tools/...
87 - from: /guide/developing/...
90 - from: /tools/aidl.html
91 to: /guide/components/aidl.html
93 - from: /guide/publishing/publishing.html
94 to: /distribute/tools/launch-checklist.html
96 - from: /guide/publishing/...
97 to: /tools/publishing/...
99 - from: /guide/topics/fundamentals.html
100 to: /guide/components/fundamentals.html
102 - from: /guide/topics/intents/intents-filters.html
103 to: /guide/components/intents-filters.html
105 - from: /guide/topics/fundamentals/...
106 to: /guide/components/...
108 - from: /guide/topics/clipboard/copy-paste.html
109 to: /guide/topics/text/copy-paste.html
111 - from: /guide/topics/ui/notifiers/index.html
112 to: /guide/topics/ui/notifiers/notifications.html
114 - from: /guide/topics/wireless/...
115 to: /guide/topics/connectivity/...
117 - from: /guide/topics/drawing/...
118 to: /guide/topics/graphics/opengl.html
120 - from: /guide/topics/connectivity/usb/adk.html
121 to: /tools/adk/index.html
123 - from: /tools/workflow/publishing/versioning.html
124 to: /tools/publishing/versioning.html
126 - from: /tools/workflow/publishing/publishing.html
127 to: /tools/publishing/publishing_overview.html
129 - from: /tools/workflow/publishing_overview.html
130 to: /tools/publishing/publishing_overview.html
132 - from: /tools/workflow/publishing/publishing_overview.html
133 to: /tools/publishing/publishing_overview.html
135 - from: /tools/workflow/app-signing.html
136 to: /tools/publishing/app-signing.html
138 - from: /tools/adk/aoa.html
139 to: http://source.android.com/tech/accessories/aoap/aoa.html
141 - from: /tools/adk/aoa2.html
142 to: http://source.android.com/tech/accessories/aoap/aoa2.html
144 - from: /guide/topics/usb/...
145 to: /guide/topics/connectivity/usb/...
147 - from: /guide/appendix/api-levels.html
148 to: /guide/topics/manifest/uses-sdk-element.html#ApiLevels
150 - from: /guide/appendix/install-location.html
151 to: /guide/topics/data/install-location.html
153 - from: /guide/basics/...
154 to: /about/index.html
156 - from: /guide/topics/security/security.html
157 to: /training/articles/security-tips.html
159 - from: /guide/topics/security/index.html
160 to: /training/articles/security-tips.html
162 - from: /guide/appendix/market-filters.html
163 to: /google/play/filters.html
165 - from: /guide/topics/testing/...
166 to: /tools/testing/...
168 - from: /guide/topics/graphics/animation.html
169 to: /guide/topics/graphics/overview.html
171 - from: /guide/topics/graphics/renderscript.html
172 to: /guide/topics/renderscript/index.html
174 - from: /guide/topics/graphics/renderscript/
175 to: /guide/topics/renderscript/index.html
177 - from: /guide/topics/location/obtaining-user-location.html
178 to: /guide/topics/location/strategies.html
180 - from: /guide/topics/nfc/...
181 to: /guide/topics/connectivity/nfc/...
183 - from: /guide/topics/wireless/...
184 to: /guide/topics/connectivity/...
186 - from: /guide/topics/network/...
187 to: /guide/topics/connectivity/...
189 - from: /resources/articles/creating-input-method.html
190 to: /guide/topics/text/creating-input-method.html
192 - from: /resources/articles/spell-checker-framework.html
193 to: /guide/topics/text/spell-checker-framework.html
195 - from: /resources/tutorials/notepad/...
196 to: /training/notepad/...
198 - from: /resources/faq/...
201 - from: /resources/tutorials/hello-world.html
202 to: /training/basics/firstapp/index.html
204 # add the rest of the tutorials here
206 - from: /guide/practices/design/...
207 to: /guide/practices/...
209 - from: /guide/practices/accessibility.html
210 to: /guide/topics/ui/accessibility/index.html
212 # move best practices to training
214 - from: /guide/practices/app-design/performance.html
215 to: /training/articles/perf-tips.html
217 - from: /guide/practices/performance.html
218 to: /training/articles/perf-tips.html
220 - from: /guide/practices/app-design/responsiveness.html
221 to: /training/articles/perf-anr.html
223 - from: /guide/practices/responsiveness.html
224 to: /training/articles/perf-anr.html
226 - from: /guide/practices/security.html
227 to: /training/articles/security-tips.html
229 - from: /guide/practices/jni.html
230 to: /training/articles/perf-jni.html
232 - from: /guide/tutorials/...
233 to: /resources/tutorials/...
235 # move ui docs to design
237 - from: /guide/practices/ui_guidelines/index.html
238 to: /design/index.html
240 - from: /guide/practices/ui_guidelines/icon_design.*
241 to: /design/style/iconography.html
243 - from: /guide/practices/ui_guidelines/activity_task_design.html
244 to: /design/patterns/app-structure.html
246 - from: /guide/practices/ui_guidelines/menu_design.html
247 to: /design/patterns/actionbar.html
250 # ------------------- RESOURCES -------------------
252 - from: /resources/dashboard/...
253 to: /about/dashboards/index.html
255 - from: /resources/community-groups.html
258 - from: /resources/tutorials/views/hello-linearlayout.html
259 to: /guide/topics/ui/layout/linear.html
261 - from: /resources/tutorials/views/hello-relativelayout.html
262 to: /guide/topics/ui/layout/relative.html
264 - from: /resources/tutorials/views/hello-listview.html
265 to: /guide/topics/ui/layout/listview.html
267 - from: /resources/tutorials/views/hello-gridview.html
268 to: /guide/topics/ui/layout/gridview.html
270 - from: /resources/tutorials/views/hello-webview.html
271 to: /guide/webapps/webview.html
273 - from: /resources/tutorials/views/hello-formstuff.html
274 to: /guide/topics/ui/controls.html
276 - from: /resources/tutorials/views/hello-datepicker.html
277 to: /guide/topics/ui/controls/pickers.html
279 - from: /resources/tutorials/views/hello-timepicker.html
280 to: /guide/topics/ui/controls/pickers.html
282 - from: /resources/tutorials/views/hello-autocomplete.html
283 to: /guide/topics/ui/controls/text.html
285 - from: /resources/tutorials/views/hello-spinner.html
286 to: /guide/topics/ui/controls/spinner.html
288 - from: /resources/tutorials/opengl/opengl-es10.html
289 to: /training/graphics/opengl/index.html
291 - from: /resources/tutorials/opengl/opengl-es20.html
292 to: /training/graphics/opengl/index.html
294 - from: /resources/tutorials/views/hello-mapview.html
295 to: https://developers.google.com/maps/documentation/android/hello-mapview
297 - from: /resources/tutorials/views/...
298 to: /guide/topics/ui/declaring-layout.html#CommonLayouts
300 - from: /guide/topics/ui/layout-objects.html
301 to: /guide/topics/ui/declaring-layout.html#CommonLayouts
303 - from: /resources/tutorials/localization/...
304 to: /training/basics/supporting-devices/languages.html
306 - from: /resources/samples/...
307 to: /tools/samples/index.html
310 to: /guide/components/index.html
311 # comment: this redirects guide/ and guide/index.html only
313 # ------------------- TRAINING -------------------
315 - from: /guide/topics/ui/layout/tabs.html
316 to: /training/implementing-navigation/lateral.html
318 - from: /training/cloudsync/aesync.html
319 to: /google/gcm/index.html
321 - from: /training/basics/location/...
322 to: /training/location/...
324 # -------------------- MISC ----------------------
326 - from: /shareables/training/BitmapFun.zip
327 to: /downloads/samples/DisplayingBitmaps.zip
329 - from: /shareables/auto/AndroidAuto-audio-apps.pdf
330 to: http://google.com/design/spec-auto/audio-apps/design-principles.html
332 - from: /shareables/auto/AndroidAuto-messaging-apps.pdf
333 to: http://google.com/design/spec-auto/messaging-apps/voice-based-messaging.html
335 - from: /shareables/auto/AndroidAuto-custom-colors.pdf
336 to: http://google.com/design/spec-auto/colors-branding/color-themes.html
338 - from: /shareables/...
339 to: http://commondatastorage.googleapis.com/androiddevelopers/shareables/...
341 - from: /downloads/...
342 to: http://commondatastorage.googleapis.com/androiddevelopers/...
347 - from: /videos/index.html
348 to: /develop/index.html
350 - from: /live/index.html
351 to: https://developers.google.com/live/
353 # ---------- PLATFORM VERSIONS ----------------
356 to: /about/versions/android-4.2.html
359 to: /about/versions/android-4.1.html
362 to: /about/versions/android-4.0.html
364 - from: /(j|jb|jellybean)/?$
365 to: /about/versions/jelly-bean.html
368 - from: /(i|ics|icecreamsandwich)/?$
369 to: /about/versions/android-4.0-highlights.html
372 - from: /(h|hc|honeycomb)/?$
373 to: /about/versions/android-3.0-highlights.html
376 - from: /(g|gb|gingerbread)/?$
377 to: /about/versions/android-2.3-highlights.html
380 # ---------- MISC -----------------
383 to: https://plus.google.com/108967384991768947849/posts
387 to: http://android-developers.blogspot.com
390 to: /about/dashboards/index.html
393 to: http://www.youtube.com/user/androiddevelopers
396 to: http://developer.android.com/distribute/googleplay/promote/badges.html
399 to: http://developer.android.com/distribute/promote/device-art.html
402 to: https://services.google.com/fb/forms/playedu
405 to: /distribute/googleplay/edu/index.html
407 - from: /preview/google-play-services-wear.html
408 to: /training/building-wearables.html
410 # ---------- DISTRIBUTE ------------------
411 - from: /distribute/tools/promote/badge-files.html
412 to: /distribute/tools/promote/badges.html