Skip to content

Commit dbf0c8c

Browse files
fix(docs): use /learn/ prefix for all internal absolute links (#43)
1 parent 1e90e68 commit dbf0c8c

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

pages/asynchronous-work/discover-promises-in-nodejs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ console.log('Synchronous task executed');
365365

366366
### `setImmediate()`
367367

368-
`setImmediate()` schedules a callback to be executed in the check phase of the Node.js [event loop](/asynchronous-work/event-loop-timers-and-nexttick), which runs after the poll phase, where most I/O callbacks are processed.
368+
`setImmediate()` schedules a callback to be executed in the check phase of the Node.js [event loop](/learn/asynchronous-work/event-loop-timers-and-nexttick), which runs after the poll phase, where most I/O callbacks are processed.
369369

370370
```js
371371
setImmediate(() => {
@@ -383,4 +383,4 @@ console.log('Synchronous task executed');
383383

384384
Because these tasks execute outside of the current synchronous flow, uncaught exceptions inside these callbacks won't be caught by surrounding `try/catch` blocks and may crash the application if not properly managed (e.g., by attaching `.catch()` to Promises or using global error handlers like `process.on('uncaughtException')`).
385385

386-
For more information on the Event Loop, and the execution order of various phases, please see the related article, [The Node.js Event Loop](/asynchronous-work/event-loop-timers-and-nexttick).
386+
For more information on the Event Loop, and the execution order of various phases, please see the related article, [The Node.js Event Loop](/learn/asynchronous-work/event-loop-timers-and-nexttick).

pages/asynchronous-work/overview-of-blocking-vs-non-blocking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors: ovflowd, HassanBahati
77
This overview covers the difference between **blocking** and **non-blocking**
88
calls in Node.js. This overview will refer to the event loop and libuv but no
99
prior knowledge of those topics is required. Readers are assumed to have a
10-
basic understanding of the JavaScript language and Node.js [callback pattern](/asynchronous-work/javascript-asynchronous-programming-and-callbacks).
10+
basic understanding of the JavaScript language and Node.js [callback pattern](/learn/asynchronous-work/javascript-asynchronous-programming-and-callbacks).
1111

1212
> "I/O" refers primarily to interaction with the system's disk and
1313
> network supported by [libuv](https://libuv.org/).

pages/asynchronous-work/understanding-processnexttick.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ Calling `setTimeout(() => {}, 0)` will execute the function at the end of next t
2323

2424
Use `nextTick()` when you want to make sure that in the next event loop iteration that code is already executed.
2525

26-
To learn more about the order of execution and how the event loop works, check out [the dedicated article](/asynchronous-work/event-loop-timers-and-nexttick)
26+
To learn more about the order of execution and how the event loop works, check out [the dedicated article](/learn/asynchronous-work/event-loop-timers-and-nexttick)

pages/diagnostics/live-debugging/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ application executes for a certain trigger like an incoming HTTP request. They
1818
may also want to step through the code and control the execution as well as
1919
inspect what values variables hold in memory.
2020

21-
- [Using Inspector](/diagnostics/live-debugging/using-inspector)
21+
- [Using Inspector](/learn/diagnostics/live-debugging/using-inspector)

pages/diagnostics/live-debugging/using-inspector.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ of the application as it handles a business-critical workload.
99

1010
## How To
1111

12-
[Debugging Node.js](/diagnostics/debugging)
12+
[Debugging Node.js](/learn/diagnostics/debugging)

pages/diagnostics/memory/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ multi-tenant, business critical, and long-running, providing an accessible and
1010
efficient way of finding a memory leak is essential.
1111

1212
You can also fine-tune memory to get specific results. Check out
13-
[Understanding and Tuning Memory](/diagnostics/memory/understanding-and-tuning-memory) for more details.
13+
[Understanding and Tuning Memory](/learn/diagnostics/memory/understanding-and-tuning-memory) for more details.
1414

1515
### Symptoms
1616

@@ -47,6 +47,6 @@ type of objects take and what variables are preventing them from being garbage
4747
collected. It can also help to know the allocation pattern of our program over
4848
time.
4949

50-
- [Using Heap Profiler](/diagnostics/memory/using-heap-profiler/)
51-
- [Using Heap Snapshot](/diagnostics/memory/using-heap-snapshot/)
52-
- [GC Traces](/diagnostics/memory/using-gc-traces)
50+
- [Using Heap Profiler](/learn/diagnostics/memory/using-heap-profiler/)
51+
- [Using Heap Snapshot](/learn/diagnostics/memory/using-heap-snapshot/)
52+
- [GC Traces](/learn/diagnostics/memory/using-gc-traces/)

pages/diagnostics/poor-performance/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ the others. When we do this locally, we usually try to optimize our code.
2222

2323
This document provides two simple ways to profile a Node.js application:
2424

25-
- [Using V8 Sampling Profiler](/diagnostics/profiling)
26-
- [Using Linux Perf](/diagnostics/poor-performance/using-linux-perf)
25+
- [Using V8 Sampling Profiler](/learn/diagnostics/profiling)
26+
- [Using Linux Perf](/learn/diagnostics/poor-performance/using-linux-perf)

pages/diagnostics/poor-performance/using-linux-perf.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ visualization.
6767

6868
![Example nodejs flamegraph](https://user-images.githubusercontent.com/26234614/129488674-8fc80fd5-549e-4a80-8ce2-2ba6be20f8e8.png)
6969

70-
To generate a flamegraph from this result, follow [this tutorial](/diagnostics/flame-graphs#create-a-flame-graph-with-system-perf-tools)
70+
To generate a flamegraph from this result, follow [this tutorial](/learn/diagnostics/flame-graphs#create-a-flame-graph-with-system-perf-tools)
7171
from step 6.
7272

7373
Because `perf` output is not a Node.js specific tool, it might have issues with how JavaScript code is optimized in
74-
Node.js. See [perf output issues](/diagnostics/flame-graphs#perf-output-issues) for a
74+
Node.js. See [perf output issues](/learn/diagnostics/flame-graphs#perf-output-issues) for a
7575
further reference.
7676

7777
## Useful Links
7878

79-
- [Flame Graphs](/diagnostics/flame-graphs)
79+
- [Flame Graphs](/learn/diagnostics/flame-graphs)
8080
- https://www.brendangregg.com/blog/2014-09-17/node-flame-graphs-on-linux.html
8181
- https://perf.wiki.kernel.org/index.php/Main_Page
8282
- https://blog.rafaelgss.com.br/node-cpu-profiler

pages/getting-started/how-much-javascript-do-you-need-to-know-to-use-nodejs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ As a beginner, it's hard to get to a point where you are confident enough in you
2121
- [Arrays](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)
2222
- [Template Literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)
2323
- [Strict Mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode)
24-
- [ECMAScript 2015 (ES6) and beyond](/getting-started/ecmascript-2015-es6-and-beyond)
24+
- [ECMAScript 2015 (ES6) and beyond](/learn/getting-started/ecmascript-2015-es6-and-beyond)
2525
- [Asynchronous JavaScript](https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Async_JS)
2626

2727
With those concepts in mind, you are well on your road to become a proficient JavaScript developer, in both the browser and in Node.js.

pages/typescript/publishing-a-ts-package.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This article covers items regarding TypeScript publishing specifically. Publishi
88

99
Some important things to note:
1010

11-
- Everything from [Publishing a package](../package-management/publishing-a-package) applies here.
11+
- Everything from [Publishing a package](/learn/modules/publishing-a-package) applies here.
1212
- Fields like `main` operate on _published_ content, so when TypeScript source-code is transpiled to JavaScript, JavaScript is the published content and `main` would point to a JavaScript file with a JavaScript file extension (ex `main.ts``"main": "main.js"`).
1313

1414
- Fields like `scripts.test` operate on source-code, so they would use the file extensions of the source code (ex `"test": "node --test './src/**/*.test.ts'`).

0 commit comments

Comments
 (0)