Skip to content

Fix duplicate yarn init entry in CLI docs - #7237

Open
Hashim1999164 wants to merge 1 commit into
yarnpkg:masterfrom
Hashim1999164:fix/cli-docs-dedupe-init-path
Open

Fix duplicate yarn init entry in CLI docs#7237
Hashim1999164 wants to merge 1 commit into
yarnpkg:masterfrom
Hashim1999164:fix/cli-docs-dedupe-init-path

Conversation

@Hashim1999164

Copy link
Copy Markdown

What's the problem this PR addresses?

Fixes #7187

The CLI reference page listed yarn init twice under General commands. That happened because Clipanion registers both the plain init command and the init <initializer> overload under the same path, and the docs generator emitted one row per command definition.

How did you fix it?

In the CLI docs plugin, keep a single definition per command path before building the index and sidebar pages.

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

Clipanion registers both init and init-with-initializer under the same
path, so the generated CLI index listed yarn init twice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug?]: [Docs] Duplication of yarn command in the CLI documentation

1 participant