From 6affbcd287025c6939c5e42b4ec77b0a33df08e9 Mon Sep 17 00:00:00 2001 From: Michael Rienstra Date: Thu, 15 Sep 2022 12:40:15 -0700 Subject: [PATCH 1/3] docs: add hash to "tag" config link Minor change. [using-npm/config](https://docs.npmjs.com/cli/v8/using-npm/config) is a long page -- heck, the subtitle is "More than you probably want to know about npm configuration" -- so instead of dumping people at the top of it when they follow the link to learn about the "tag" config, let's send 'em right to the relevant bit. Aside from it being a long page, one more motivation: trying to get to the section by searching is also slow, it's the 16th (of 24) occurrence of "tag" on the page. (though to be fair, only the 4th if they catch it in the table of contents) --- docs/content/commands/npm-install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/commands/npm-install.md b/docs/content/commands/npm-install.md index 0cf2eea83edb9..72bd93fff9ba8 100644 --- a/docs/content/commands/npm-install.md +++ b/docs/content/commands/npm-install.md @@ -127,7 +127,7 @@ into a tarball (b). * `npm install [<@scope>/]`: Do a `@` install, where `` is the "tag" config. (See - [`config`](/using-npm/config). The config's default value is `latest`.) + [`config`](/using-npm/config#tag). The config's default value is `latest`.) In most cases, this will install the version of the modules tagged as `latest` on the npm registry. From 10386665ea397f2526b32b6d7588d5fafce36235 Mon Sep 17 00:00:00 2001 From: Michael Rienstra Date: Thu, 15 Sep 2022 14:29:24 -0700 Subject: [PATCH 2/3] docs: fix some nonstandard formatting --- docs/content/commands/npm-config.md | 2 +- docs/content/using-npm/package-spec.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/commands/npm-config.md b/docs/content/commands/npm-config.md index 28c6003571de5..6e0c0b682d724 100644 --- a/docs/content/commands/npm-config.md +++ b/docs/content/commands/npm-config.md @@ -35,7 +35,7 @@ variables, `npmrc` files, and in some cases, the `package.json` file. See [npmrc](/configuring-npm/npmrc) for more information about the npmrc files. -See [config(7)](/using-npm/config) for a more thorough explanation of the +See [config](/using-npm/config) for a more thorough explanation of the mechanisms involved, and a full list of config options available. The `npm config` command can be used to update and edit the contents diff --git a/docs/content/using-npm/package-spec.md b/docs/content/using-npm/package-spec.md index 0d3741018f036..1ace780019fb3 100644 --- a/docs/content/using-npm/package-spec.md +++ b/docs/content/using-npm/package-spec.md @@ -101,6 +101,6 @@ Examples: ### See also -[npm-package-arg](https://npm.im/npm-package-arg) -[scope](/using-npm/scope) -[config](/using-npm/config) +* [npm-package-arg](https://npm.im/npm-package-arg) +* [scope](/using-npm/scope) +* [config](/using-npm/config) From 8dc57875178827a8b84074b892dfe4be645af081 Mon Sep 17 00:00:00 2001 From: Michael Rienstra Date: Thu, 15 Sep 2022 14:30:16 -0700 Subject: [PATCH 3/3] docs: more useful link --- docs/content/commands/npm-adduser.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/commands/npm-adduser.md b/docs/content/commands/npm-adduser.md index 700aecb2255b2..ed09a3975938b 100644 --- a/docs/content/commands/npm-adduser.md +++ b/docs/content/commands/npm-adduser.md @@ -27,7 +27,7 @@ Note: This command is unaware of workspaces. Create or verify a user named `` in the specified registry, and save the credentials to the `.npmrc` file. If no registry is specified, -the default registry will be used (see [`config`](/using-npm/config)). +the default registry will be used (see [`registry`](/using-npm/registry)). The username, password, and email are read in from prompts.