|
1 | | -import { Footer, Layout, Navbar } from "nextra-theme-docs"; |
| 1 | +import { Layout } from "nextra-theme-docs"; |
2 | 2 | import { Head } from "nextra/components"; |
3 | 3 | import { getPageMap } from "nextra/page-map"; |
4 | 4 | import type { Metadata } from "next"; |
5 | | -import "nextra-theme-docs/style.css"; |
| 5 | +import { Navbar } from "@/components/navbar"; |
| 6 | +import { Footer } from "@/components/footer"; |
| 7 | +import { METADATA } from "@/lib/constants"; |
| 8 | +import "@/app/globals.css"; |
6 | 9 |
|
7 | | -export const metadata: Metadata = {}; |
8 | | - |
9 | | -const navbar = <Navbar logo={<b>Nextra</b>} />; |
10 | | -const footer = <Footer>MIT {new Date().getFullYear()} © Nextra.</Footer>; |
| 10 | +export const metadata: Metadata = { |
| 11 | + title: METADATA.title, |
| 12 | + description: METADATA.description, |
| 13 | +}; |
11 | 14 |
|
12 | 15 | export default async function RootLayout({ |
13 | 16 | children, |
14 | 17 | }: { |
15 | 18 | children: React.ReactNode; |
16 | 19 | }) { |
17 | 20 | return ( |
18 | | - <html |
19 | | - // Not required, but good for SEO |
20 | | - lang="en" |
21 | | - // Required to be set |
22 | | - dir="ltr" |
23 | | - // Suggested by `next-themes` package https://github.com/pacocoursey/next-themes#with-app |
24 | | - suppressHydrationWarning |
25 | | - > |
| 21 | + <html lang="en" dir="ltr" suppressHydrationWarning> |
26 | 22 | <Head></Head> |
27 | 23 | <body> |
28 | 24 | <Layout |
29 | | - navbar={navbar} |
| 25 | + navbar={Navbar} |
30 | 26 | pageMap={await getPageMap()} |
31 | | - docsRepositoryBase="https://github.com/nedhmn/ygo-ruling-ai-chatbot/apps/docs" |
32 | | - footer={footer} |
| 27 | + docsRepositoryBase={METADATA.docsRepositoryBase} |
| 28 | + editLink={false} |
33 | 29 | > |
34 | 30 | {children} |
35 | 31 | </Layout> |
|
0 commit comments