mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-30 22:13:28 +08:00
docs: use canonical plugin command namespace
This commit is contained in:
committed by
Affaan Mustafa
parent
d05855be5f
commit
a374eaf49d
@@ -50,6 +50,17 @@ const pluginAndManualInstallDocs = [
|
||||
'docs/zh-CN/README.md',
|
||||
];
|
||||
|
||||
const publicCommandNamespaceDocs = [
|
||||
'README.md',
|
||||
'README.zh-CN.md',
|
||||
'docs/pt-BR/README.md',
|
||||
'docs/tr/README.md',
|
||||
'docs/ko-KR/README.md',
|
||||
'docs/ja-JP/README.md',
|
||||
'docs/zh-CN/README.md',
|
||||
'docs/zh-TW/README.md',
|
||||
];
|
||||
|
||||
for (const relativePath of pluginAndManualInstallDocs) {
|
||||
const content = fs.readFileSync(path.join(repoRoot, relativePath), 'utf8');
|
||||
|
||||
@@ -70,6 +81,21 @@ for (const relativePath of pluginAndManualInstallDocs) {
|
||||
});
|
||||
}
|
||||
|
||||
for (const relativePath of publicCommandNamespaceDocs) {
|
||||
const content = fs.readFileSync(path.join(repoRoot, relativePath), 'utf8');
|
||||
|
||||
test(`${relativePath} uses the canonical plugin command namespace`, () => {
|
||||
assert.ok(
|
||||
!content.includes('/ecc:'),
|
||||
'Expected docs not to advertise the unsupported /ecc: plugin alias'
|
||||
);
|
||||
assert.ok(
|
||||
content.includes('/everything-claude-code:plan'),
|
||||
'Expected docs to show the canonical plugin command namespace'
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
if (failed > 0) {
|
||||
console.log(`\nFailed: ${failed}`);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user