Commit 611c816
authored
Fix broken links related to the new "Trusted publishing" page (#1690)
<!-- What / Why -->
<!-- Describe the request in detail. What it does and why it's being
changed. -->
The internal links added in
#1674 followed the on-disk
paths and did not respect that the URL paths use a different scheme, as
explained in
https://github.com/npm/documentation/blob/4c574b89e23515d8411e5ec52624d6a932b874e0/CONTRIBUTING.md#urls:
> ### URLs
> Note that for backward compatibility reasons, the on-disk paths are
not precisely identical to the URLs for the documentation. To keep URLs
expressive but still short, intermediate directories are removed from a
page's URL.
>
> (...)
>
> You might (understandably) expect the page "Creating Node.js modules"
to be URL-wise beneath `contributing-packages-to-the-registry`, but
unfortunately, you would be wrong. To keep URLs short, the intermediate
folder paths are removed from pages, so "Creating Node.js modules"
becomes `https://docs.npmjs.com/creating-node-js-modules`.
Also see
https://github.com/npm/documentation/blob/4c574b89e23515d8411e5ec52624d6a932b874e0/CONTENT-MODEL.md#content-structure:
> ## Content structure
>
> Docs are grouped by topic.
>
> - Top-level doc set (Example:
https://docs.npmjs.com/packages-and-modules)
> - Categories (Example:
https://docs.npmjs.com/packages-and-modules/introduction-to-packages-and-modules)
> - **Articles (Example:
https://docs.npmjs.com/about-packages-and-modules)**
As a result, these links did not work at https://docs.npmjs.com/. This
PR fixes them.
## References
Related to #1674 (all links
fixed in this PR were introduced there)
<!-- Examples:
Related to #0
Depends on #0
Blocked by #0
Fixes #0
Closes #0
-->1 parent 744e29e commit 611c816
File tree
6 files changed
+8
-8
lines changed- content
- integrations/integrating-npm-with-external-services
- packages-and-modules
- contributing-packages-to-the-registry
- securing-your-code
6 files changed
+8
-8
lines changedcontent/integrations/integrating-npm-with-external-services/creating-and-viewing-access-tokens.mdx
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments