diff --git a/www/docs/src/context/sidebar.ts b/www/docs/src/context/sidebar.ts index 3260e69e28..b8de674ae2 100644 --- a/www/docs/src/context/sidebar.ts +++ b/www/docs/src/context/sidebar.ts @@ -1,6 +1,7 @@ import { createContext } from "react" type SidebarContextType = { + hasSidebar: boolean hiddenSidebar: boolean setHiddenSidebar: (value: boolean) => void hiddenSidebarContainer: boolean diff --git a/www/docs/src/theme/DocPage/index.tsx b/www/docs/src/theme/DocPage/index.tsx index 0faf996568..b9930cd753 100644 --- a/www/docs/src/theme/DocPage/index.tsx +++ b/www/docs/src/theme/DocPage/index.tsx @@ -91,6 +91,8 @@ export default function DocPage(props: Props): JSX.Element { } }) + console.log(sidebarName) + return ( <> @@ -107,6 +109,7 @@ export default function DocPage(props: Props): JSX.Element { {!mobileSidebar.disabled && } - {hideable && ( + {hideable && sidebarContext?.hasSidebar && (