From a96eb877ec31f0ab2be8ffe3bc62a73dca381460 Mon Sep 17 00:00:00 2001 From: Karthikeyan Padaikathu Date: Thu, 14 Nov 2024 14:15:42 -0800 Subject: [PATCH 1/5] Bug fix for #9219 & #9186 --- content/cli/v10/commands/npm-adduser.mdx | 14 +++++++------- src/mdx/code.js | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/content/cli/v10/commands/npm-adduser.mdx b/content/cli/v10/commands/npm-adduser.mdx index 6cc73549e3b..4c2a04a21e9 100644 --- a/content/cli/v10/commands/npm-adduser.mdx +++ b/content/cli/v10/commands/npm-adduser.mdx @@ -35,7 +35,7 @@ redirect_from: - /commands/npm-adduser --- -### Synopsis +## Synopsis ```bash npm adduser @@ -45,22 +45,22 @@ alias: add-user Note: This command is unaware of workspaces. -### Description +## Description Create a new user in the specified registry, and save the credentials to the `.npmrc` file. If no registry is specified, the default registry will be used (see [`registry`](/cli/v10/using-npm/registry)). When using `legacy` for your `auth-type`, the username, password, and email are read in from prompts. -### Configuration +## Configuration -#### `registry` +### `registry` - Default: "https://registry.npmjs.org/" - Type: URL The base URL of the npm registry. -#### `scope` +### `scope` - Default: the scope of the current project, if any, or "" - Type: String @@ -87,14 +87,14 @@ This will also cause `npm init` to create a scoped package. npm init --scope=@foo --yes ``` -#### `auth-type` +### `auth-type` - Default: "web" - Type: "legacy" or "web" What authentication strategy to use with `login`. Note that if an `otp` config is given, this value will always be set to `legacy`. -### See Also +## See Also - [npm registry](/cli/v10/using-npm/registry) - [npm config](/cli/v10/commands/npm-config) diff --git a/src/mdx/code.js b/src/mdx/code.js index 65325860fa1..f065a48b738 100644 --- a/src/mdx/code.js +++ b/src/mdx/code.js @@ -54,6 +54,7 @@ const MonoText = props => ( adjust to the width of the container // https://stackoverflow.com/a/14406386 @@ -64,6 +65,7 @@ const CodeBlock = ({children, code, className, style}) => ( }} > Date: Thu, 14 Nov 2024 19:44:08 -0800 Subject: [PATCH 2/5] Revert "Bug fix for #9219 & #9186" This reverts commit a96eb877ec31f0ab2be8ffe3bc62a73dca381460. --- content/cli/v10/commands/npm-adduser.mdx | 14 +++++++------- src/mdx/code.js | 2 -- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/content/cli/v10/commands/npm-adduser.mdx b/content/cli/v10/commands/npm-adduser.mdx index 4c2a04a21e9..6cc73549e3b 100644 --- a/content/cli/v10/commands/npm-adduser.mdx +++ b/content/cli/v10/commands/npm-adduser.mdx @@ -35,7 +35,7 @@ redirect_from: - /commands/npm-adduser --- -## Synopsis +### Synopsis ```bash npm adduser @@ -45,22 +45,22 @@ alias: add-user Note: This command is unaware of workspaces. -## Description +### Description Create a new user in the specified registry, and save the credentials to the `.npmrc` file. If no registry is specified, the default registry will be used (see [`registry`](/cli/v10/using-npm/registry)). When using `legacy` for your `auth-type`, the username, password, and email are read in from prompts. -## Configuration +### Configuration -### `registry` +#### `registry` - Default: "https://registry.npmjs.org/" - Type: URL The base URL of the npm registry. -### `scope` +#### `scope` - Default: the scope of the current project, if any, or "" - Type: String @@ -87,14 +87,14 @@ This will also cause `npm init` to create a scoped package. npm init --scope=@foo --yes ``` -### `auth-type` +#### `auth-type` - Default: "web" - Type: "legacy" or "web" What authentication strategy to use with `login`. Note that if an `otp` config is given, this value will always be set to `legacy`. -## See Also +### See Also - [npm registry](/cli/v10/using-npm/registry) - [npm config](/cli/v10/commands/npm-config) diff --git a/src/mdx/code.js b/src/mdx/code.js index f065a48b738..65325860fa1 100644 --- a/src/mdx/code.js +++ b/src/mdx/code.js @@ -54,7 +54,6 @@ const MonoText = props => ( adjust to the width of the container // https://stackoverflow.com/a/14406386 @@ -65,7 +64,6 @@ const CodeBlock = ({children, code, className, style}) => ( }} > Date: Thu, 14 Nov 2024 19:47:11 -0800 Subject: [PATCH 3/5] Bug fix for #9186 --- src/mdx/code.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mdx/code.js b/src/mdx/code.js index 65325860fa1..f065a48b738 100644 --- a/src/mdx/code.js +++ b/src/mdx/code.js @@ -54,6 +54,7 @@ const MonoText = props => ( adjust to the width of the container // https://stackoverflow.com/a/14406386 @@ -64,6 +65,7 @@ const CodeBlock = ({children, code, className, style}) => ( }} > Date: Mon, 25 Nov 2024 17:52:30 -0800 Subject: [PATCH 4/5] Revert "Bug fix for #9186" This reverts commit ec7fab863266a558beebfd0963677d558caacde1. --- src/mdx/code.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mdx/code.js b/src/mdx/code.js index f065a48b738..65325860fa1 100644 --- a/src/mdx/code.js +++ b/src/mdx/code.js @@ -54,7 +54,6 @@ const MonoText = props => ( adjust to the width of the container // https://stackoverflow.com/a/14406386 @@ -65,7 +64,6 @@ const CodeBlock = ({children, code, className, style}) => ( }} > Date: Mon, 2 Dec 2024 10:18:21 -0800 Subject: [PATCH 5/5] Accessibility fix --- src/components/table-of-contents.js | 2 +- src/mdx/components.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/table-of-contents.js b/src/components/table-of-contents.js index 7cb42e94b0d..d8abb5972c5 100644 --- a/src/components/table-of-contents.js +++ b/src/components/table-of-contents.js @@ -76,7 +76,7 @@ export const Desktop = withTableOfContents(({items}) => ( maxHeight: `calc(100vh - ${SCROLL_MARGIN_TOP}px)`, }} > - + Table of contents