chore: simplify config

pull/2736/head
Divyansh Singh 1 year ago
parent 52884d9d4b
commit f8126fe39f

@ -145,7 +145,6 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
] ]
} }
/* prettier-ignore */
function sidebarReference(): DefaultTheme.SidebarItem[] { function sidebarReference(): DefaultTheme.SidebarItem[] {
return [ return [
{ {
@ -157,20 +156,21 @@ function sidebarReference(): DefaultTheme.SidebarItem[] {
{ text: 'CLI', link: 'cli' }, { text: 'CLI', link: 'cli' },
{ {
text: 'Default Theme', text: 'Default Theme',
base: '/reference/default-theme-',
items: [ items: [
{ text: 'Overview', link: 'default-theme-config' }, { text: 'Overview', link: 'config' },
{ text: 'Nav', link: 'default-theme-nav' }, { text: 'Nav', link: 'nav' },
{ text: 'Sidebar', link: 'default-theme-sidebar' }, { text: 'Sidebar', link: 'sidebar' },
{ text: 'Home Page', link: 'default-theme-home-page' }, { text: 'Home Page', link: 'home-page' },
{ text: 'Footer', link: 'default-theme-footer' }, { text: 'Footer', link: 'footer' },
{ text: 'Layout', link: 'default-theme-layout' }, { text: 'Layout', link: 'layout' },
{ text: 'Badge', link: 'default-theme-badge' }, { text: 'Badge', link: 'badge' },
{ text: 'Team Page', link: 'default-theme-team-page' }, { text: 'Team Page', link: 'team-page' },
{ text: 'Prev / Next Links', link: 'default-theme-prev-next-links' }, { text: 'Prev / Next Links', link: 'prev-next-links' },
{ text: 'Edit Link', link: 'default-theme-edit-link' }, { text: 'Edit Link', link: 'edit-link' },
{ text: 'Last Updated Timestamp', link: 'default-theme-last-updated' }, { text: 'Last Updated Timestamp', link: 'last-updated' },
{ text: 'Search', link: 'default-theme-search' }, { text: 'Search', link: 'search' },
{ text: 'Carbon Ads', link: 'default-theme-carbon-ads' } { text: 'Carbon Ads', link: 'carbon-ads' }
] ]
} }
] ]

Loading…
Cancel
Save