forked from GoogleChrome/developer.chrome.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redirects.yaml
360 lines (261 loc) · 9.82 KB
/
redirects.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
# There are two types of redirects:
#
# (1) Simple redirects, e.g., "from: /foo"
# - These don't match subpaths, like "/foo/bar"
# - But it will match similar URLs "/foo", "/foo/" and "/foo/index.html"
#
# (2) Group redirects, e.g., "from: /foo/...", which will match the top-level
# path (with the same rules as (1)) as well as any descendant paths
#
# Redirects are checked top-to-bottom. For more information on the extended
# syntax found here, see NPM `redirects-yaml`.
#
# WARNING! Redirects DO NOT take priority over static content.
# For example, if you try to redirect "/foo" but the site contains a static file
# "/foo/index.html", the static file will always win.
redirects:
# Simple redirects
- from: /activeTab
to: /docs/extensions/reference/activeTab
- from: /android/overview
to: /docs/multidevice/android/overview/
- from: /apps/about_apps
to: /docs/apps/overview/
- from: /docs/extensions/mv3/background_migration
to: /docs/extensions/mv3/migrating_to_service_workers
- from: /docs/extensions/mv3/background_pages
to: /docs/extensions/mv3/service_workers
- from: /docs/multidevice/android/customtabs/
to: /docs/android/custom-tabs/overview
- from: /multidevice/android/customtabs/
to: /docs/android/custom-tabs/overview
- from: /docs/webstore/overview/
to: /docs/webstore/about_webstore/
- from: /docs/webstore/pricing/
to: /docs/webstore/money/
- from: /docs/devtools/javascript/blackbox-chrome-extension-scripts/
to: /docs/devtools/javascript/ignore-chrome-extension-scripts/
- from: /summit
to: /devsummit/
# Removal of /overview pages
- from: /docs/android/custom-tabs/overview/
to: /docs/android/custom-tabs/
- from: /docs/android/trusted-web-activity/overview/
to: /docs/android/trusted-web-activity/
- from: /multidevice/webview/overview/
to: /multidevice/android/
- from: /multidevice/webview/overview/
to: /multidevice/webview/
# CWS payments/apps purge
- from: /docs/webstore/hosted_apps
to: /docs/webstore
- from: /docs/webstore/migrating
to: /docs/webstore
- from: /docs/webstore/get_started_simple
to: /docs/webstore/publish/
- from: /docs/webstore/apps_vs_extensions
to: /docs/webstore
- from: /docs/webstore/distribution
to: /docs/webstore
- from: /docs/webstore/launching
to: /docs/webstore
- from: /docs/webstore/choosing
to: /docs/webstore
- from: /docs/webstore/samples
to: /docs/webstore
- from: /docs/webstore/get_started
to: /docs/webstore
- from: /docs/webstore/inline_installation
to: /docs/webstore
- from: /docs/webstore/authentication
to: /docs/webstore
- from: /docs/webstore/one_time_payments
to: /docs/webstore
- from: /docs/webstore/payments-iap
to: /docs/webstore
# Fixes #675
- from: /extensions/manifestVersion
to: /docs/extensions/mv3/manifest/version/
# Fixes #675
- from: /apps/manifestVersion
to: /docs/apps/manifestVersion
# The new site doesn't break out Platform Apps APIs, but instead just locates them at the bottom of
# the main Extensions reference page.
- from: /apps/api_index
to: /docs/extensions/reference/#platform-apis
- from: /apps/app_codelab1_setup
to: /docs/apps/app_codelab_intro
- from: /apps/arc_in_app_payments
to: https://developer.android.com/chrome-os/intro
- from: /apps/getstarted_arc
to: https://developer.android.com/chrome-os/intro.html
- from: /apps/google_wallet
to: /docs/webstore/payments-iap
- from: /apps/npapi
to: https://blog.chromium.org/2013/09/saying-goodbye-to-our-old-friend-npapi.html
- from: /apps/packaging
to: /docs/extensions/mv2/hosting
- from: /chrome/apps/
to: /docs/apps/about_apps
# DevTools redirects
- from: /docs/devtools/network-performance/reference
to: /docs/devtools/network/reference/
- from: /docs/devtools/network/resource-loading/
to: /docs/devtools/network/reference/
- from: /docs/devtools/device-mode/device-input-and-sensors/
to: /docs/devtools/device-mode/
- from: /docs/devtools/device-mode/emulate-mobile-viewports/
to: /docs/devtools/device-mode/
- from: /docs/devtools/console/console-write/
to: /docs/devtools/console/api/
- from: /docs/devtools/console/track-exceptions/
to: /docs/devtools/console/api/
- from: /docs/devtools/console/track-executions/
to: /docs/devtools/console/api/
- from: /docs/devtools/console/events/
to: /docs/devtools/console/utilities/
- from: /docs/devtools/console/expressions/
to: /docs/devtools/console/javascript/
- from: /docs/devtools/evaluate-performance/timeline-tool/
to: /docs/devtools/evaluate-performance/reference/
- from: /docs/devtools/inspect-styles/edit-styles/
to: /docs/devtools/css/reference/
- from: /docs/devtools/javascript/pretty-print/
to: /docs/devtools/javascript/reference/#format
- from: /docs/devtools/manage-data/local-storage/
to: /docs/devtools/#storage
- from: /docs/devtools/network/network-conditions/
to: /docs/devtools/network/reference/
- from: /docs/devtools/network/understanding-resource-timing/
to: /docs/devtools/network/reference/#timing
- from: /docs/devtools/rendering-tools/forced-synchronous-layouts/
to: /docs/devtools/evaluate-performance/
- from: /docs/devtools/rendering-tools/js-execution/
to: /docs/devtools/evaluate-performance/
- from: /docs/devtools/rendering-tools/
to: /docs/devtools/evaluate-performance/
- from: /docs/devtools/updates/
to: /tags/new-in-devtools/
# TODO(kaycebasques): Update these old DevTools redirects
- from: /devtools/
to: https://developers.google.com/web/tools/chrome-devtools
- from: /devtools/docs/blackboxing
to: https://developers.google.com/web/tools/chrome-devtools/javascript/reference#ignore-list
- from: /devtools/docs/commandline-api
to: https://developers.google.com/web/tools/chrome-devtools/console/utilities
- from: /devtools/docs/console-api
to: https://developers.google.com/web/tools/chrome-devtools/console/api
- from: /devtools/docs/debugger-protocol
to: https://chromedevtools.github.io/devtools-protocol/
- from: /devtools/docs/device-mode
to: https://developers.google.com/web/tools/chrome-devtools/device-mode
- from: /devtools/docs/elements-styles
to: https://developers.google.com/web/tools/chrome-devtools/css/reference
- from: /devtools/docs/mobile-emulation
to: https://developers.google.com/web/tools/chrome-devtools/device-mode
- from: /devtools/docs/resources
to: https://developers.google.com/web/tools/chrome-devtools/dom
- from: /devtools/docs/remote-debugging
to: https://developers.google.com/web/tools/chrome-devtools/remote-debugging
- from: /extensions/api_index
to: /docs/extensions/reference/
- from: /extensions/arc_in_app_payments
to: https://developer.android.com/chrome-os/intro.html
- from: /extensions/arc_playservices
to: https://developer.android.com/chrome-os/intro.html
- from: /extensions/autoupdate
to: /docs/extensions/mv3/hosting
- from: /extensions/crx
to: /docs/extensions/mv3/hosting
- from: /extensions/getstarted_arc
to: https://developer.android.com/chrome-os/intro.html
- from: /extensions/manifest/file_system_provider
to: /docs/extensions/reference/fileSystemProvider
- from: /extensions/npapi
to: https://blog.chromium.org/2013/09/saying-goodbye-to-our-old-friend-npapi.html
- from: /extensions/optionsV2
to: /docs/extensions/mv2/options
- from: /extensions/packaging
to: /docs/extensions/mv3/hosting
- from: /extensions/migrating_to_manifest_v3
to: /docs/extensions/mv3/mv3-migration-checklist
- from: /docs/extensions/mv2/migrating_to_manifest_v3
to: /docs/extensions/mv3/mv3-migration-checklist
- from: /home
to: /
- from: /manifest/...
try:
- /docs/extensions/mv3/manifest/...
- /docs/apps/manifest/...
- from: /multidevice/data-compression
to: https://support.google.com/chrome/answer/2392284
- from: /multidevice/data-compression-for-isps
to: https://support.google.com/chrome/answer/2392284
- from: /webstore/api_index
to: /docs/webstore/api_index/
- from: /webstore/articles
to: /docs/webstore/
- from: /webstore/check_for_payment
to: /docs/webstore/money/
- from: /webstore/payments-otp
to: /docs/webstore/one_time_payments/
- from: /webstore/intl/en/program_policies
to: /docs/webstore/program_policies/
- from: /webview/overview
to: /docs/multidevice/android/overview/
- from: /docs/extensions/declarativenetrequest
to: /docs/extensions/reference/declarativeNetRequest
# MV2 docs that have been removed, but their MV3 version still exists
- from: /docs/extensions/mv2/single_purpose
to: /docs/extensions/mv3/single_purpose/
# Group redirects
- from: /apps/apps/...
to: /apps...
- from: /apps/...
try:
- /docs/apps/manifest/...
- /docs/extensions/reference/...
- /docs/extensions/mv2/manifest/... # nb. Deprecated /apps/ platform is essentially mv2 only
- /docs/extensions/mv2/...
- /docs/extensions/...
else: /docs/apps/...
# Redirecting all old DevTools docs to the homepage
- from: /devtools/...
to: https://developers.google.com/web/tools/chrome-devtools/
- from: /extensions/extensions/...
to: /extensions/...
- from: /extensions/...
try:
- /docs/extensions/reference/...
- /docs/extensions/mv3/manifest/...
- /docs/extensions/mv3/...
- /docs/apps/...
- /docs/apps/manifest/...
else: /docs/extensions/...
- from: /manifest/...
try:
- /docs/extensions/mv3/manifest/...
else: /docs/apps/manifest/...
- from : /multidevice/...
to: /docs/multidevice/...
- from: /native-client/...
to: /docs/native-client/...
- from: /webstore/...
to: /docs/webstore/...
- from: /webstore/docs/...
to: /docs/webstore/...
- from: /webstore/webstore/...
to: /docs/webstore/...
- from: /...
try:
- /docs/extensions/...
- /docs/extensions/reference/...
- /docs/extensions/mv3/manifest/...
- /docs/extensions/mv3/...
- /docs/apps/manifest/...
- /docs/apps/...
# DO NOT REMOVE. This seems pointless but we rewrite "." to "_" inside our server's code, so if the
# URL is fine for all but incorrect syntax, we'll fix it up.
- from: /...
try:
- /...