diff --git a/apps/docs/app/layout.tsx b/apps/docs/app/layout.tsx new file mode 100644 index 0000000..d9dac0d --- /dev/null +++ b/apps/docs/app/layout.tsx @@ -0,0 +1,54 @@ +import { Footer, Layout, Navbar } from "nextra-theme-docs"; +import { Head } from "nextra/components"; +import { getPageMap } from "nextra/page-map"; +import "nextra-theme-docs/style.css"; +import type { Metadata } from "next"; +import type { ReactElement, ReactNode } from "react"; + +export const metadata: Metadata = { + title: { + default: "Antd Admin 文档", + template: "%s – Antd Admin 文档", + }, + description: "antd-admin 模板使用说明:basic 与 with-lingui 选型、安装与配置。", +}; + +const navbar = ( + Antd Admin 文档} + projectLink="https://github.com/zuiidea/antd-admin" + /> +); + +const footer = ( + +); + +export default async function RootLayout({ + children, +}: { + children: ReactNode; +}): Promise { + const pageMap = await getPageMap(); + + return ( + + + + + {children} + + + + ); +}