mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
fix(v2) : use safe/unsafe wording to denote swizzle safety (#4547)
* fix : make swizzle items more accessible * feat : use safe/unsafe wording Co-authored-by: Lisa Chandra <52909743+lisa761@users.noreply.github.com> Co-authored-by: Javid <singularity.javid@gmail.com>
This commit is contained in:
parent
b6fbca70b8
commit
44029128fa
1 changed files with 4 additions and 4 deletions
|
@ -94,8 +94,8 @@ function themeComponents(
|
||||||
return `
|
return `
|
||||||
${chalk.cyan('Theme components available for swizzle')}
|
${chalk.cyan('Theme components available for swizzle')}
|
||||||
|
|
||||||
${chalk.green('green =>')} recommended: lower breaking change risk
|
${chalk.green('green =>')} safe: lower breaking change risk
|
||||||
${chalk.red('red =>')} internal: higher breaking change risk
|
${chalk.red('red =>')} unsafe: higher breaking change risk
|
||||||
|
|
||||||
${components.join('\n')}
|
${components.join('\n')}
|
||||||
`;
|
`;
|
||||||
|
@ -123,8 +123,8 @@ function colorCode(
|
||||||
);
|
);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
...greenComponents.map((component) => chalk.green(component)),
|
...greenComponents.map((component) => chalk.green(`safe: ${component}`)),
|
||||||
...redComponents.map((component) => chalk.red(component)),
|
...redComponents.map((component) => chalk.red(`unsafe: ${component}`)),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue