fix: shorten registry sidebar labels
Build and publish Corp v1 steering documentation / build (push) Successful in 32s

This commit is contained in:
2026-08-12 13:17:57 +00:00
parent e44abc1028
commit d9df612315
4 changed files with 9 additions and 3 deletions
+6
View File
@@ -21,6 +21,12 @@ for (const section of ['projects', 'teams', 'members', 'governance']) {
assert.ok(existsSync(join(root, `sidebars/${section}.ts`)), `${section} sidebar file is missing`);
}
for (const section of ['projects', 'teams', 'members']) {
const sidebar = read(`sidebars/${section}.ts`);
assert.match(sidebar, /label:\s*'Registry'/, `${section} sidebar registry label must be concise`);
assert.doesNotMatch(sidebar, /label:\s*'(Projects|Teams|Members) Registry'/, `${section} sidebar must not repeat its section name`);
}
assert.ok(packageJson.dependencies?.['@easyops-cn/docusaurus-search-local'], 'local search dependency is missing');
assert.match(config, /@easyops-cn\/docusaurus-search-local/, 'local search theme is not configured');
assert.match(config, /indexPages:\s*true/, 'custom pages must be indexed');