docs: add routing page (#9550)

- Add a new homepage to `book` project for the routing page
- Move all main doc pages to be under `/v2/learn` (and added redirects + fixed links across docs)
- Other: add admin components to resources dropdown + fixes to search on mobile.

Closes DX-955

Preview: https://docs-v2-git-docs-router-page-medusajs.vercel.app/v2
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-10-18 08:24:34 +00:00
1 parent 7a47f5211d
commit 0a37675f0e
223 files changed
+2549 -696

No files matched your search

+13 -12
View File
@@ -2,7 +2,7 @@ import type { Metadata } from "next"
import { Inter, Roboto_Mono } from "next/font/google"
import Providers from "@/providers"
import "./globals.css"
import { TightLayout } from "docs-ui"
import { BareboneLayout, TightLayout } from "docs-ui"
import { config } from "@/config"
import clsx from "clsx"
import { Feedback } from "@/components/Feedback"
@@ -37,16 +37,17 @@ export default function RootLayout({
children: React.ReactNode
}) {
return (
<TightLayout
ProvidersComponent={Providers}
sidebarProps={{
expandItems: true,
}}
bodyClassName={clsx(inter.variable, robotoMono.variable)}
feedbackComponent={<Feedback className="my-2" />}
editComponent={<EditButton />}
>
{children}
</TightLayout>
<BareboneLayout htmlClassName={clsx(inter.variable, robotoMono.variable)}>
<TightLayout
sidebarProps={{
expandItems: true,
}}
feedbackComponent={<Feedback className="my-2" />}
editComponent={<EditButton />}
ProvidersComponent={Providers}
>
{children}
</TightLayout>
</BareboneLayout>
)
}