- 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
30 lines
713 B
TypeScript
30 lines
713 B
TypeScript
import type { Metadata } from "next"
|
|
import "./globals.css"
|
|
import { config } from "@/config"
|
|
import { BareboneLayout } from "docs-ui"
|
|
import { inter, robotoMono } from "./fonts"
|
|
import clsx from "clsx"
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
template: `%s - ${config.titleSuffix}`,
|
|
default: config.titleSuffix || "",
|
|
},
|
|
description: "Explore and learn how to use Medusa.",
|
|
metadataBase: new URL(
|
|
process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
|
|
),
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<BareboneLayout htmlClassName={clsx(inter.variable, robotoMono.variable)}>
|
|
{children}
|
|
</BareboneLayout>
|
|
)
|
|
}
|