Skip to content

Commit 7ae8d92

Browse files
authored
Update learning nav to bring beginner friendly topics before complex articles for the english locale (#8293)
* Update learning nav to bring beginner friendly topics before complex articles for the english locale * fix broken i18n keys[en] and move userland migrations to getting started * create a new HTTP section within the learn tab --------- Signed-off-by: Raghav Tengse <[email protected]>
1 parent 78f6e90 commit 7ae8d92

File tree

3 files changed

+144
-134
lines changed

3 files changed

+144
-134
lines changed

apps/site/navigation.json

Lines changed: 104 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -178,22 +178,10 @@
178178
"link": "/learn/getting-started/ecmascript-2015-es6-and-beyond",
179179
"label": "components.navigation.learn.gettingStarted.links.ecmascript2015Es6AndBeyond"
180180
},
181-
"nodejsTheDifferenceBetweenDevelopmentAndProduction": {
182-
"link": "/learn/getting-started/nodejs-the-difference-between-development-and-production",
183-
"label": "components.navigation.learn.gettingStarted.links.nodejsTheDifferenceBetweenDevelopmentAndProduction"
184-
},
185-
"nodejsWithWebassembly": {
186-
"link": "/learn/getting-started/nodejs-with-webassembly",
187-
"label": "components.navigation.learn.gettingStarted.links.nodejsWithWebassembly"
188-
},
189181
"debugging": {
190182
"link": "/learn/getting-started/debugging",
191183
"label": "components.navigation.learn.gettingStarted.links.debugging"
192184
},
193-
"profiling": {
194-
"link": "/learn/getting-started/profiling",
195-
"label": "components.navigation.learn.gettingStarted.links.profiling"
196-
},
197185
"fetch": {
198186
"link": "/learn/getting-started/fetch",
199187
"label": "components.navigation.learn.gettingStarted.links.fetch"
@@ -202,6 +190,18 @@
202190
"link": "/learn/getting-started/websocket",
203191
"label": "components.navigation.learn.gettingStarted.links.websocket"
204192
},
193+
"nodejsTheDifferenceBetweenDevelopmentAndProduction": {
194+
"link": "/learn/getting-started/nodejs-the-difference-between-development-and-production",
195+
"label": "components.navigation.learn.gettingStarted.links.nodejsTheDifferenceBetweenDevelopmentAndProduction"
196+
},
197+
"profiling": {
198+
"link": "/learn/getting-started/profiling",
199+
"label": "components.navigation.learn.gettingStarted.links.profiling"
200+
},
201+
"nodejsWithWebassembly": {
202+
"link": "/learn/getting-started/nodejs-with-webassembly",
203+
"label": "components.navigation.learn.gettingStarted.links.nodejsWithWebassembly"
204+
},
205205
"securityBestPractices": {
206206
"link": "/learn/getting-started/security-best-practices",
207207
"label": "components.navigation.learn.gettingStarted.links.securityBestPractices"
@@ -212,46 +212,84 @@
212212
}
213213
}
214214
},
215-
"typescript": {
216-
"label": "components.navigation.learn.typescript.links.typescript",
215+
"commandLine": {
216+
"label": "components.navigation.learn.commandLine.links.commandLine",
217217
"items": {
218-
"introduction": {
219-
"link": "/learn/typescript/introduction",
220-
"label": "components.navigation.learn.typescript.links.introduction"
218+
"runNodejsScriptsFromTheCommandLine": {
219+
"link": "/learn/command-line/run-nodejs-scripts-from-the-command-line",
220+
"label": "components.navigation.learn.commandLine.links.runNodejsScriptsFromTheCommandLine"
221221
},
222-
"runNatively": {
223-
"link": "/learn/typescript/run-natively",
224-
"label": "components.navigation.learn.typescript.links.runNatively"
222+
"howToUseTheNodejsRepl": {
223+
"link": "/learn/command-line/how-to-use-the-nodejs-repl",
224+
"label": "components.navigation.learn.commandLine.links.howToUseTheNodejsRepl"
225225
},
226-
"run": {
227-
"link": "/learn/typescript/run",
228-
"label": "components.navigation.learn.typescript.links.run"
226+
"outputToTheCommandLineUsingNodejs": {
227+
"link": "/learn/command-line/output-to-the-command-line-using-nodejs",
228+
"label": "components.navigation.learn.commandLine.links.outputToTheCommandLineUsingNodejs"
229229
},
230-
"transpile": {
231-
"link": "/learn/typescript/transpile",
232-
"label": "components.navigation.learn.typescript.links.transpile"
230+
"acceptInputFromTheCommandLineInNodejs": {
231+
"link": "/learn/command-line/accept-input-from-the-command-line-in-nodejs",
232+
"label": "components.navigation.learn.commandLine.links.acceptInputFromTheCommandLineInNodejs"
233233
},
234-
"publishingTSPackage": {
235-
"link": "/learn/typescript/publishing-a-ts-package",
236-
"label": "components.navigation.learn.typescript.links.publishingTSPackage"
234+
"howToReadEnvironmentVariablesFromNodejs": {
235+
"link": "/learn/command-line/how-to-read-environment-variables-from-nodejs",
236+
"label": "components.navigation.learn.commandLine.links.howToReadEnvironmentVariablesFromNodejs"
237237
}
238238
}
239239
},
240-
"asynchronousWork": {
241-
"label": "components.navigation.learn.asynchronousWork.links.asynchronousWork",
240+
"http": {
241+
"label": "components.navigation.learn.http.links.http",
242242
"items": {
243-
"asynchronousFlowControl": {
244-
"link": "/learn/asynchronous-work/asynchronous-flow-control",
245-
"label": "components.navigation.learn.asynchronousWork.links.asynchronousFlowControl"
243+
"anatomyOfAnHttpTransaction": {
244+
"link": "/learn/http/anatomy-of-an-http-transaction",
245+
"label": "components.navigation.learn.http.links.anatomyOfAnHttpTransaction"
246+
}
247+
}
248+
},
249+
"manipulatingFiles": {
250+
"label": "components.navigation.learn.manipulatingFiles.links.manipulatingFiles",
251+
"items": {
252+
"nodejsFileStats": {
253+
"link": "/learn/manipulating-files/nodejs-file-stats",
254+
"label": "components.navigation.learn.manipulatingFiles.links.nodejsFileStats"
246255
},
247-
"overviewOfBlockingVsNonBlocking": {
248-
"link": "/learn/asynchronous-work/overview-of-blocking-vs-non-blocking",
249-
"label": "components.navigation.learn.asynchronousWork.links.overviewOfBlockingVsNonBlocking"
256+
"nodejsFilePaths": {
257+
"link": "/learn/manipulating-files/nodejs-file-paths",
258+
"label": "components.navigation.learn.manipulatingFiles.links.nodejsFilePaths"
259+
},
260+
"readingFilesWithNodejs": {
261+
"link": "/learn/manipulating-files/reading-files-with-nodejs",
262+
"label": "components.navigation.learn.manipulatingFiles.links.readingFilesWithNodejs"
263+
},
264+
"writingFilesWithNodejs": {
265+
"link": "/learn/manipulating-files/writing-files-with-nodejs",
266+
"label": "components.navigation.learn.manipulatingFiles.links.writingFilesWithNodejs"
250267
},
268+
"workingWithFileDescriptorsInNodejs": {
269+
"link": "/learn/manipulating-files/working-with-file-descriptors-in-nodejs",
270+
"label": "components.navigation.learn.manipulatingFiles.links.workingWithFileDescriptorsInNodejs"
271+
},
272+
"workingWithFoldersInNodejs": {
273+
"link": "/learn/manipulating-files/working-with-folders-in-nodejs",
274+
"label": "components.navigation.learn.manipulatingFiles.links.workingWithFoldersInNodejs"
275+
},
276+
"workingWithDifferentFilesystems": {
277+
"link": "/learn/manipulating-files/working-with-different-filesystems",
278+
"label": "components.navigation.learn.manipulatingFiles.links.workingWithDifferentFilesystems"
279+
}
280+
}
281+
},
282+
"asynchronousWork": {
283+
"label": "components.navigation.learn.asynchronousWork.links.asynchronousWork",
284+
"items": {
251285
"javascriptAsynchronousProgrammingAndCallbacks": {
252286
"link": "/learn/asynchronous-work/javascript-asynchronous-programming-and-callbacks",
253287
"label": "components.navigation.learn.asynchronousWork.links.javascriptAsynchronousProgrammingAndCallbacks"
254288
},
289+
"asynchronousFlowControl": {
290+
"link": "/learn/asynchronous-work/asynchronous-flow-control",
291+
"label": "components.navigation.learn.asynchronousWork.links.asynchronousFlowControl"
292+
},
255293
"discoverPromisesInNodejs": {
256294
"link": "/learn/asynchronous-work/discover-promises-in-nodejs",
257295
"label": "components.navigation.learn.asynchronousWork.links.discoverPromisesInNodejs"
@@ -260,6 +298,10 @@
260298
"link": "/learn/asynchronous-work/discover-javascript-timers",
261299
"label": "components.navigation.learn.asynchronousWork.links.discoverJavascriptTimers"
262300
},
301+
"overviewOfBlockingVsNonBlocking": {
302+
"link": "/learn/asynchronous-work/overview-of-blocking-vs-non-blocking",
303+
"label": "components.navigation.learn.asynchronousWork.links.overviewOfBlockingVsNonBlocking"
304+
},
263305
"eventLoopTimersAndNexttick": {
264306
"link": "/learn/asynchronous-work/event-loop-timers-and-nexttick",
265307
"label": "components.navigation.learn.asynchronousWork.links.eventLoopTimersAndNexttick"
@@ -282,67 +324,42 @@
282324
}
283325
}
284326
},
285-
"manipulatingFiles": {
286-
"label": "components.navigation.learn.manipulatingFiles.links.manipulatingFiles",
287-
"items": {
288-
"nodejsFileStats": {
289-
"link": "/learn/manipulating-files/nodejs-file-stats",
290-
"label": "components.navigation.learn.manipulatingFiles.links.nodejsFileStats"
291-
},
292-
"nodejsFilePaths": {
293-
"link": "/learn/manipulating-files/nodejs-file-paths",
294-
"label": "components.navigation.learn.manipulatingFiles.links.nodejsFilePaths"
295-
},
296-
"workingWithFileDescriptorsInNodejs": {
297-
"link": "/learn/manipulating-files/working-with-file-descriptors-in-nodejs",
298-
"label": "components.navigation.learn.manipulatingFiles.links.workingWithFileDescriptorsInNodejs"
299-
},
300-
"readingFilesWithNodejs": {
301-
"link": "/learn/manipulating-files/reading-files-with-nodejs",
302-
"label": "components.navigation.learn.manipulatingFiles.links.readingFilesWithNodejs"
303-
},
304-
"writingFilesWithNodejs": {
305-
"link": "/learn/manipulating-files/writing-files-with-nodejs",
306-
"label": "components.navigation.learn.manipulatingFiles.links.writingFilesWithNodejs"
307-
},
308-
"workingWithFoldersInNodejs": {
309-
"link": "/learn/manipulating-files/working-with-folders-in-nodejs",
310-
"label": "components.navigation.learn.manipulatingFiles.links.workingWithFoldersInNodejs"
311-
},
312-
"workingWithDifferentFilesystems": {
313-
"link": "/learn/manipulating-files/working-with-different-filesystems",
314-
"label": "components.navigation.learn.manipulatingFiles.links.workingWithDifferentFilesystems"
315-
}
316-
}
317-
},
318-
"commandLine": {
319-
"label": "components.navigation.learn.commandLine.links.commandLine",
327+
"typescript": {
328+
"label": "components.navigation.learn.typescript.links.typescript",
320329
"items": {
321-
"runNodejsScriptsFromTheCommandLine": {
322-
"link": "/learn/command-line/run-nodejs-scripts-from-the-command-line",
323-
"label": "components.navigation.learn.commandLine.links.runNodejsScriptsFromTheCommandLine"
330+
"introduction": {
331+
"link": "/learn/typescript/introduction",
332+
"label": "components.navigation.learn.typescript.links.introduction"
324333
},
325-
"howToReadEnvironmentVariablesFromNodejs": {
326-
"link": "/learn/command-line/how-to-read-environment-variables-from-nodejs",
327-
"label": "components.navigation.learn.commandLine.links.howToReadEnvironmentVariablesFromNodejs"
334+
"runNatively": {
335+
"link": "/learn/typescript/run-natively",
336+
"label": "components.navigation.learn.typescript.links.runNatively"
328337
},
329-
"howToUseTheNodejsRepl": {
330-
"link": "/learn/command-line/how-to-use-the-nodejs-repl",
331-
"label": "components.navigation.learn.commandLine.links.howToUseTheNodejsRepl"
338+
"transpile": {
339+
"link": "/learn/typescript/transpile",
340+
"label": "components.navigation.learn.typescript.links.transpile"
332341
},
333-
"outputToTheCommandLineUsingNodejs": {
334-
"link": "/learn/command-line/output-to-the-command-line-using-nodejs",
335-
"label": "components.navigation.learn.commandLine.links.outputToTheCommandLineUsingNodejs"
342+
"run": {
343+
"link": "/learn/typescript/run",
344+
"label": "components.navigation.learn.typescript.links.run"
336345
},
337-
"acceptInputFromTheCommandLineInNodejs": {
338-
"link": "/learn/command-line/accept-input-from-the-command-line-in-nodejs",
339-
"label": "components.navigation.learn.commandLine.links.acceptInputFromTheCommandLineInNodejs"
346+
"publishingTSPackage": {
347+
"link": "/learn/typescript/publishing-a-ts-package",
348+
"label": "components.navigation.learn.typescript.links.publishingTSPackage"
340349
}
341350
}
342351
},
343352
"modules": {
344353
"label": "components.navigation.learn.modules.links.modules",
345354
"items": {
355+
"howToUseStreams": {
356+
"link": "/learn/modules/how-to-use-streams",
357+
"label": "components.navigation.learn.modules.links.howToUseStreams"
358+
},
359+
"backpressuringInStreams": {
360+
"link": "/learn/modules/backpressuring-in-streams",
361+
"label": "components.navigation.learn.modules.links.backpressuringInStreams"
362+
},
346363
"publishingAPackage": {
347364
"link": "/learn/modules/publishing-a-package",
348365
"label": "components.navigation.learn.modules.links.publishingAPackage"
@@ -351,21 +368,9 @@
351368
"link": "/learn/modules/publishing-node-api-modules",
352369
"label": "components.navigation.learn.modules.links.publishingNodeApiModules"
353370
},
354-
"anatomyOfAnHttpTransaction": {
355-
"link": "/learn/modules/anatomy-of-an-http-transaction",
356-
"label": "components.navigation.learn.modules.links.anatomyOfAnHttpTransaction"
357-
},
358371
"abiStability": {
359372
"link": "/learn/modules/abi-stability",
360373
"label": "components.navigation.learn.modules.links.abiStability"
361-
},
362-
"howToUseStreams": {
363-
"link": "/learn/modules/how-to-use-streams",
364-
"label": "components.navigation.learn.modules.links.howToUseStreams"
365-
},
366-
"backpressuringInStreams": {
367-
"link": "/learn/modules/backpressuring-in-streams",
368-
"label": "components.navigation.learn.modules.links.backpressuringInStreams"
369374
}
370375
}
371376
},
File renamed without changes.

0 commit comments

Comments
 (0)