Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit f465a75

Browse files
miffiliovflowd
andauthored
Fix/broken links in learn quick start (#2657)
Co-authored-by: Claudio Wunder <cwunder@gnome.org>
1 parent a7c750e commit f465a75

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

content/learn/node-javascript-language.en.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ With those concepts in mind, you are well on your road to become a proficient Ja
3232

3333
The following concepts are also key to understand asynchronous programming, which is one of the fundamental parts of Node.js:
3434

35-
* [Asynchronous programming and callbacks](https://nodejs.dev/learn/javascript-asynchronous-programming-and-callbacks)
36-
* [Timers](https://nodejs.dev/learn/discover-javascript-timers)
37-
* [Promises](https://nodejs.dev/learn/understanding-javascript-promises)
38-
* [Async and Await](https://nodejs.dev/learn/modern-asynchronous-javascript-with-async-and-await)
35+
* [Asynchronous programming and callbacks](/learn/javascript-asynchronous-programming-and-callbacks)
36+
* [Timers](/learn/discover-javascript-timers)
37+
* [Promises](/learn/understanding-javascript-promises)
38+
* [Async and Await](/learn/modern-asynchronous-javascript-with-async-and-await)
3939
* [Closures](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures)
40-
* [The Event Loop](https://nodejs.dev/learn/the-nodejs-event-loop)
40+
* [The Event Loop](/learn/the-nodejs-event-loop)
File renamed without changes.

content/learn/package-json.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,6 @@ You have seen in the description above version numbers like these: `~3.0.0` or `
448448

449449
That symbol specifies which updates your package accepts, from that dependency.
450450

451-
Given that using semver (semantic versioning) all versions have 3 digits, the first being the major release, the second the minor release and the third is the patch release, you have these "[Rules](https://nodejs.dev/learn/semantic-versioning-using-npm/)".
451+
Given that using semver (semantic versioning) all versions have 3 digits, the first being the major release, the second the minor release and the third is the patch release, you have these "[Rules](/learn/semantic-versioning-using-npm/)".
452452

453453
You can combine most of the versions in ranges, like this: `1.0.0 || >=1.1.0 <1.2.0`, to either use 1.0.0 or one release from 1.1.0 up, but lower than 1.2.0.

src/data/learn.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
- node-process-nexttick
4040
- node-setimmediate
4141
- javascript-timers
42-
- javascripts-callbacks
42+
- javascript-callbacks
4343
- javascript-promises
4444
- javascript-async-await
4545
- node-event-emitter
4646
- node-http-server
4747
- node-make-http-requests
4848
- node-request-data
49-
- node-file-descriptions
49+
- node-file-descriptors
5050
- node-file-stats
5151
- node-file-paths
5252
- node-reading-files

util-node/createMarkdownPages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function getYamlPageIdentifier(relativePath) {
2-
// This attempts to include optional possible language code file extension suffixes
2+
// Include optional possible language code file extension suffixes
33
// eg.: index.en.md, index.md, index.en.mdx, some-blog-post.md, ...
4-
return relativePath.endsWith('/index.')
4+
return relativePath.includes('/index.')
55
? relativePath.replace(/\/index(\.[a-z]+)?\.(mdx|md)/, '')
66
: relativePath.replace(/(\.[a-z]+)?\.(mdx|md)/, '');
77
}

0 commit comments

Comments
 (0)