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`);
|
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.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, /@easyops-cn\/docusaurus-search-local/, 'local search theme is not configured');
|
||||||
assert.match(config, /indexPages:\s*true/, 'custom pages must be indexed');
|
assert.match(config, /indexPages:\s*true/, 'custom pages must be indexed');
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
|
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
|
||||||
|
|
||||||
const sidebars: SidebarsConfig = {
|
const sidebars: SidebarsConfig = {
|
||||||
membersSidebar: [{type: 'doc', id: 'index', label: 'Members Registry'}],
|
membersSidebar: [{type: 'doc', id: 'index', label: 'Registry'}],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default sidebars;
|
export default sidebars;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
|
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
|
||||||
|
|
||||||
const sidebars: SidebarsConfig = {
|
const sidebars: SidebarsConfig = {
|
||||||
projectsSidebar: [{type: 'doc', id: 'index', label: 'Projects Registry'}],
|
projectsSidebar: [{type: 'doc', id: 'index', label: 'Registry'}],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default sidebars;
|
export default sidebars;
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
|
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
|
||||||
|
|
||||||
const sidebars: SidebarsConfig = {
|
const sidebars: SidebarsConfig = {
|
||||||
teamsSidebar: [{type: 'doc', id: 'index', label: 'Teams Registry'}],
|
teamsSidebar: [{type: 'doc', id: 'index', label: 'Registry'}],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default sidebars;
|
export default sidebars;
|
||||||
|
|||||||
Reference in New Issue
Block a user