Skip to content

Commit 64e41c8

Browse files
authored
Update links for yarn explain to Docosaurus versions (#6321)
## What's the problem this PR addresses? This updates the URLs for the `yarn explain` command to make it work after the move from Gatsby to Docusaurus. Resolves #6249. ## How did you fix it? - Change the version-tagged link (`repo.yarnpkg.com`) to what @arcanis says will be published after the next release - Change the Github link for hint about how to help updating documentation
1 parent 8445b05 commit 64e41c8

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.yarn/versions/39208ab7.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
releases:
2+
"@yarnpkg/cli": patch
3+
"@yarnpkg/plugin-essentials": patch
4+
5+
declined:
6+
- "@yarnpkg/plugin-compat"
7+
- "@yarnpkg/plugin-constraints"
8+
- "@yarnpkg/plugin-dlx"
9+
- "@yarnpkg/plugin-init"
10+
- "@yarnpkg/plugin-interactive-tools"
11+
- "@yarnpkg/plugin-nm"
12+
- "@yarnpkg/plugin-npm-cli"
13+
- "@yarnpkg/plugin-pack"
14+
- "@yarnpkg/plugin-patch"
15+
- "@yarnpkg/plugin-pnp"
16+
- "@yarnpkg/plugin-pnpm"
17+
- "@yarnpkg/plugin-stage"
18+
- "@yarnpkg/plugin-typescript"
19+
- "@yarnpkg/plugin-version"
20+
- "@yarnpkg/plugin-workspace-tools"
21+
- "@yarnpkg/builder"
22+
- "@yarnpkg/core"
23+
- "@yarnpkg/doctor"

packages/plugin-essentials/sources/commands/explain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function getErrorCodeDetails(configuration: Configuration) {
1616
? YarnVersion
1717
: await resolveTag(configuration, `canary`);
1818

19-
const errorCodesUrl = `https://repo.yarnpkg.com/${version}/packages/gatsby/content/advanced/error-codes.md`;
19+
const errorCodesUrl = `https://repo.yarnpkg.com/${version}/packages/docusaurus/docs/advanced/01-general-reference/error-codes.mdx`;
2020
const raw: Buffer = await httpUtils.get(errorCodesUrl, {configuration});
2121

2222
return new Map<string, string>(Array.from(raw.toString().matchAll(ERROR_CODE_DOC_REGEXP), ({groups}) => {
@@ -88,7 +88,7 @@ export default class ExplainCommand extends BaseCommand {
8888
: `This error code does not have a description.\n\nYou can help us by editing this page on GitHub 🙂:\n${
8989
formatUtils.jsonOrPretty(this.json, configuration, formatUtils.tuple(
9090
formatUtils.Type.URL,
91-
`https://github.com/yarnpkg/berry/blob/master/packages/gatsby/content/advanced/error-codes.md`,
91+
`https://github.com/yarnpkg/berry/blob/master/packages/docusaurus/docs/advanced/01-general-reference/error-codes.mdx`,
9292
))
9393
}\n`;
9494

0 commit comments

Comments
 (0)