docs: support multiple sidebars in a project (#11768)
* changed to new sidebar across projects except resources * finalize multi sidebar support * clean up * remove redundant property * small changes * fixes * generate * fix error * fix initial open
This commit is contained in:
1 parent
2a0bd86204
commit
5deb8eaf50
108 files changed
+37634
-36749
No files matched your search
@@ -16,7 +16,7 @@ Refer to the [Medusa UI documentation](!ui!) for a full list of components.
|
||||
|
||||
Use these components to set the layout of your UI route.
|
||||
|
||||
<ChildDocs showItems={["Layouts"]} onlyTopLevel={false} />
|
||||
<ChildDocs showItems={["Layouts"]} onlyTopLevel={false} hideTitle />
|
||||
|
||||
---
|
||||
|
||||
@@ -24,4 +24,4 @@ Use these components to set the layout of your UI route.
|
||||
|
||||
Use these components in your widgets and UI routes.
|
||||
|
||||
<ChildDocs showItems={["Components"]} onlyTopLevel={false} />
|
||||
<ChildDocs showItems={["Components"]} onlyTopLevel={false} hideTitle />
|
||||
Whitespace-only changes.
@@ -63,13 +63,7 @@ export default function RootLayout({
|
||||
htmlClassName={clsx(inter.variable, robotoMono.variable)}
|
||||
gaId={process.env.NEXT_PUBLIC_GA_ID}
|
||||
>
|
||||
<TightLayout
|
||||
sidebarProps={{
|
||||
expandItems: true,
|
||||
}}
|
||||
ProvidersComponent={Providers}
|
||||
footerComponent={<Footer />}
|
||||
>
|
||||
<TightLayout ProvidersComponent={Providers} footerComponent={<Footer />}>
|
||||
{children}
|
||||
</TightLayout>
|
||||
</BareboneLayout>
|
||||
|
||||
@@ -8,4 +8,4 @@ export const metadata = {
|
||||
|
||||
This section of the documentation provides recipes for common use cases with example implementations.
|
||||
|
||||
<ChildDocs onlyTopLevel />
|
||||
<ChildDocs onlyTopLevel hideItems={["Overview"]} />
|
||||
@@ -20,4 +20,4 @@ You can build your storefront from scratch, or built it on top of the [Next.js S
|
||||
|
||||
---
|
||||
|
||||
<ChildDocs hideItems={["General"]} />
|
||||
<ChildDocs hideItems={["General", "Overview"]} />
|
||||
@@ -12,4 +12,4 @@ The following troubleshooting guides are intended for technical users. If you're
|
||||
|
||||
</Note>
|
||||
|
||||
<ChildDocs />
|
||||
<ChildDocs hideItems={["Overview"]} />
|
||||
Reference in new issue
Block a user