1 import { Footer, Layout, Navbar } from 'nextra-theme-docs'
2 import { Head } from 'nextra/components'
3 import { getPageMap } from 'nextra/page-map'
4 import 'nextra-theme-docs/style.css'
5
6 export const metadata = {
7 metadataBase: new URL('https://docs.smbcloud.xyz'),
8 title: {
9 default: 'smbCloud Platform Documentation',
10 template: '%s – smbCloud Platform Documentation'
11 },
12 description: 'smbCloud Platform Documentation',
13 applicationName: 'smbCloud Platform Documentation',
14 openGraph: {
15 title: 'smbCloud Platform Documentation',
16 description: 'smbCloud Platform Documentation',
17 url: 'https://docs.smbcloud.xyz',
18 siteName: 'smbCloud Platform Documentation'
19 }
20 }
21
22 const navbar = (
23 <Navbar
24 logo={<span>smbCloud Platform Documentation</span>}
25 projectLink="https://github.com/smbcloudXYZ"
26 />
27 )
28
29 const footer = (
30 <Footer>
31 MIT {new Date().getFullYear()} ©{' '}
32 <a href="https://docs.smbcloud.xyz" target="_blank" rel="noreferrer">
33 smbCloud Platform Documentation
34 </a>
35 </Footer>
36 )
37
38 export default async function RootLayout({ children }) {
39 const pageMap = await getPageMap()
40 return (
41 <html lang="en" dir="ltr" suppressHydrationWarning>
42 <Head />
43 <body>
44 <Layout
45 navbar={navbar}
46 footer={footer}
47 pageMap={pageMap}
48 docsRepositoryBase="https://github.com/smbcloudXYZ/smbcloud-docs/tree/main"
49 editLink="Edit this page on GitHub"
50 sidebar={{ defaultMenuCollapseLevel: 1 }}
51 >
52 {children}
53 </Layout>
54 </body>
55 </html>
56 )
57 }