Files
corp-v1-3darch-documentation/sidebarsScope.ts
T
jarvis-at-skic a4564001c4
Build and publish 3D Architecture Wizzard documentation / build (pull_request) Failing after 20s
fix: preserve sidebar literal types
2026-09-02 09:44:20 +00:00

25 lines
824 B
TypeScript

import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
const epicIds = Array.from({length: 10}, (_, index) => `3darch-ep-${index + 1}`);
const sidebars: SidebarsConfig = {
scopeSidebar: [
'overview',
'roadmap',
{type: 'category', label: 'Ideas', link: {type: 'doc', id: 'ideas'}, items: []},
{type: 'category', label: 'Questions', link: {type: 'doc', id: 'questions'}, items: []},
{
type: 'category',
label: 'Epics',
link: {type: 'doc', id: 'epics/index'},
collapsed: false,
items: epicIds.map((id) => ({
type: 'category' as const,
label: id.toUpperCase(),
link: {type: 'doc' as const, id: `epics/${id}`},
items: [{type: 'category' as const, label: 'Features', items: []}],
})),
},
],
};
export default sidebars;