@@ -14,11 +14,11 @@ const PAGES_DIR = path.resolve(__dirname, '../pages');
14
14
/** Manual list of directories to pull in to the getting started tutorial */
15
15
const startingDirectories = [ 'introduction' , 'get-started' , 'tutorial' , 'next-steps' ] ;
16
16
/** Manual list of directories to categorize as "EAS content" */
17
- const easDirectories = [ 'eas' , 'build' , 'app-signing' , 'build-reference' , 'submit' ] ;
17
+ const easDirectories = [ 'eas' , 'build' , 'app-signing' , 'build-reference' , 'submit' , 'eas-update' ] ;
18
+ /** Manual list of directories to categorize as "Archive" */
19
+ const archiveDirectores = [ 'archive' ] ;
18
20
/** Private preview section which isn't linked in the documentation */
19
21
const previewDirectories = [ 'preview' ] ;
20
- /** Public preview section which is linked under `Feature Preview` */
21
- const featurePreviewDirectories = [ 'feature-preview' , 'eas-update' ] ;
22
22
/** All other unlisted directories */
23
23
const generalDirectories = fs
24
24
. readdirSync ( PAGES_DIR , { withFileTypes : true } )
@@ -31,8 +31,8 @@ const generalDirectories = fs
31
31
! [
32
32
...startingDirectories ,
33
33
...previewDirectories ,
34
- ...featurePreviewDirectories ,
35
34
...easDirectories ,
35
+ ...archiveDirectores ,
36
36
] . includes ( name )
37
37
) ;
38
38
@@ -85,7 +85,6 @@ const general = [
85
85
makePage ( 'workflow/android-studio-emulator.md' ) ,
86
86
makePage ( 'workflow/debugging.md' ) ,
87
87
makePage ( 'workflow/configuration.md' ) ,
88
- makePage ( 'workflow/publishing.md' ) ,
89
88
makePage ( 'workflow/upgrading-expo-sdk-walkthrough.md' ) ,
90
89
makePage ( 'workflow/web.md' ) ,
91
90
makePage ( 'workflow/snack.md' ) ,
@@ -99,14 +98,11 @@ const general = [
99
98
makeGroup ( 'Distributing Your App' , [
100
99
makePage ( 'distribution/introduction.md' ) ,
101
100
makePage ( 'distribution/app-stores.md' ) ,
102
- makePage ( 'distribution/release-channels.md' ) ,
103
- makePage ( 'distribution/advanced-release-channels.md' ) ,
104
101
makePage ( 'distribution/runtime-versions.md' ) ,
105
- makePage ( 'distribution/hosting-your-app .md' ) ,
102
+ makePage ( 'distribution/custom-updates-server .md' ) ,
106
103
makePage ( 'distribution/uploading-apps.md' ) ,
107
104
makePage ( 'distribution/app-transfers.md' ) ,
108
105
makePage ( 'distribution/security.md' ) ,
109
- makePage ( 'distribution/optimizing-updates.md' ) ,
110
106
makePage ( 'distribution/publishing-websites.md' ) ,
111
107
] ) ,
112
108
] ) ,
@@ -137,12 +133,9 @@ const general = [
137
133
makePage ( 'guides/typescript.md' ) ,
138
134
makePage ( 'guides/authentication.md' ) ,
139
135
makePage ( 'guides/userinterface.md' ) ,
140
- makePage ( 'guides/preloading-and-caching-assets.md' ) ,
141
136
makePage ( 'guides/environment-variables.md' ) ,
142
- makePage ( 'guides/configuring-updates.md' ) ,
143
137
makePage ( 'guides/customizing-metro.md' ) ,
144
138
makePage ( 'guides/customizing-webpack.md' ) ,
145
- makePage ( 'guides/offline-support.md' ) ,
146
139
makePage ( 'guides/progressive-web-apps.md' ) ,
147
140
makePage ( 'guides/web-performance.md' ) ,
148
141
makePage ( 'guides/delaying-code.md' ) ,
@@ -207,9 +200,6 @@ const general = [
207
200
makePage ( 'push-notifications/faq.md' ) ,
208
201
] ) ,
209
202
] ) ,
210
- makeSection ( 'Classic Services' , [
211
- makeGroup ( 'Classic Services' , sortAlphabetical ( pagesFromDir ( 'classic' ) ) ) ,
212
- ] ) ,
213
203
makeSection ( 'UI Programming' , [
214
204
makeGroup ( 'UI Programming' , [
215
205
makePage ( 'ui-programming/image-background.md' ) ,
@@ -316,15 +306,6 @@ const eas = [
316
306
] ,
317
307
{ expanded : true }
318
308
) ,
319
- ] ;
320
-
321
- const preview = [
322
- makeSection ( 'Preview' , [
323
- makeGroup ( 'Preview' , [ makePage ( 'preview/introduction.md' ) , makePage ( 'preview/support.md' ) ] ) ,
324
- ] ) ,
325
- ] ;
326
-
327
- const featurePreview = [
328
309
makeSection (
329
310
'EAS Update' ,
330
311
[
@@ -338,9 +319,7 @@ const featurePreview = [
338
319
makePage ( 'eas-update/debug-updates.md' ) ,
339
320
makePage ( 'eas-update/eas-update-and-eas-cli.md' ) ,
340
321
makePage ( 'eas-update/optimize-assets.md' ) ,
341
- makePage ( 'eas-update/custom-updates-server.md' ) ,
342
322
makePage ( 'eas-update/migrate-to-eas-update.md' ) ,
343
- makePage ( 'eas-update/bare-react-native.md' ) ,
344
323
makePage ( 'eas-update/runtime-versions.md' ) ,
345
324
makePage ( 'eas-update/environment-variables.md' ) ,
346
325
makePage ( 'eas-update/expo-dev-client.md' ) ,
@@ -352,6 +331,46 @@ const featurePreview = [
352
331
) ,
353
332
] ;
354
333
334
+ const preview = [
335
+ makeSection ( 'Preview' , [
336
+ makeGroup ( 'Preview' , [ makePage ( 'preview/introduction.md' ) , makePage ( 'preview/support.md' ) ] ) ,
337
+ ] ) ,
338
+ ] ;
339
+
340
+ const archive = [
341
+ makeSection ( 'Archive' , [ makeGroup ( 'Archive' , [ makePage ( 'archive/index.md' ) ] ) ] , {
342
+ expanded : true ,
343
+ } ) ,
344
+ makeSection (
345
+ 'Classic Updates' ,
346
+ [
347
+ makeGroup ( 'Classic Updates' , [ makePage ( 'archive/classic-updates/introduction.md' ) ] ) ,
348
+ makeGroup ( 'Guides' , [
349
+ makePage ( 'archive/classic-updates/configuring-updates.md' ) ,
350
+ makePage ( 'archive/classic-updates/preloading-and-caching-assets.md' ) ,
351
+ ] ) ,
352
+ makeGroup ( 'Distribution' , [
353
+ makePage ( 'archive/classic-updates/release-channels.md' ) ,
354
+ makePage ( 'archive/classic-updates/advanced-release-channels.md' ) ,
355
+ makePage ( 'archive/classic-updates/hosting-your-app.md' ) ,
356
+ makePage ( 'archive/classic-updates/offline-support.md' ) ,
357
+ makePage ( 'archive/classic-updates/optimizing-updates.md' ) ,
358
+ ] ) ,
359
+ makeGroup ( 'Workflow' , [ makePage ( 'archive/classic-updates/publishing.md' ) ] ) ,
360
+ makeGroup ( 'Bare Workflow' , [ makePage ( 'archive/classic-updates/updating-your-app.md' ) ] ) ,
361
+ makeGroup ( 'Classic Services' , [
362
+ makePage ( 'archive/classic-updates/building-standalone-apps.md' ) ,
363
+ makePage ( 'archive/classic-updates/turtle-cli.md' ) ,
364
+ ] ) ,
365
+ ] ,
366
+ {
367
+ expanded : true ,
368
+ }
369
+ ) ,
370
+ ] ;
371
+
372
+ const featurePreview = [ ] ;
373
+
355
374
const reference = VERSIONS . reduce (
356
375
( all , version ) => ( {
357
376
...all ,
@@ -384,14 +403,14 @@ module.exports = {
384
403
general,
385
404
eas,
386
405
preview,
406
+ archive,
387
407
featurePreview,
388
408
/** @type {any } */
389
409
reference : { ...reference , latest : reference [ LATEST_VERSION ] } ,
390
410
generalDirectories,
391
411
startingDirectories,
392
412
previewDirectories,
393
413
easDirectories,
394
- featurePreviewDirectories,
395
414
} ;
396
415
397
416
// --- MDX methods ---
0 commit comments