fix: shorten registry sidebar labels
Build and publish Corp v1 steering documentation / build (push) Successful in 32s
Build and publish Corp v1 steering documentation / build (push) Successful in 32s
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user