mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 03:58:49 +02:00
refactor(theme-classic): move all sidebar-related config under themeConfig.docs.sidebar (#7277)
This commit is contained in:
parent
881430078e
commit
785fed723f
10 changed files with 79 additions and 31 deletions
|
@ -104,6 +104,10 @@ export type TableOfContents = {
|
|||
export type ThemeConfig = {
|
||||
docs: {
|
||||
versionPersistence: DocsVersionPersistence;
|
||||
sidebar: {
|
||||
hideable: boolean;
|
||||
autoCollapseCategories: boolean;
|
||||
};
|
||||
};
|
||||
|
||||
// TODO we should complete this theme config type over time
|
||||
|
@ -116,11 +120,8 @@ export type ThemeConfig = {
|
|||
announcementBar?: AnnouncementBarConfig;
|
||||
prism: PrismConfig;
|
||||
footer?: Footer;
|
||||
hideableSidebar: boolean;
|
||||
autoCollapseSidebarCategories: boolean;
|
||||
image?: string;
|
||||
metadata: Array<{[key: string]: string}>;
|
||||
sidebarCollapsible: boolean;
|
||||
tableOfContents: TableOfContents;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue