@@ -24,18 +24,20 @@ import '@gfazioli/mantine-text-animate/styles.layer.css';
2424
2525import { ColorSchemeScript , mantineHtmlProps , MantineProvider } from '@mantine/core' ;
2626
27- import '@mantine/core/styles.layer.css' ;
28-
2927import { Layout } from 'nextra-theme-docs' ;
3028import { Banner , Head } from 'nextra/components' ;
3129import { getPageMap } from 'nextra/page-map' ;
3230import { theme } from '../theme' ;
31+ import { Inter } from 'next/font/google' ;
3332
3433import './global.css' ;
3534
3635import { FloatingAssistant } from '@/components/FloatingAssistant' ;
36+ import { PocketFlowChatbot } from '@/components/PocketFlowChatbot' ;
3737import { Providers } from './providers' ;
3838
39+ const inter = Inter ( { subsets : [ 'latin' ] , variable : '--font-sans' } ) ;
40+
3941export const metadata = {
4042 title : {
4143 default : 'Beacon - NextGen Docs for Nexres' ,
@@ -82,33 +84,34 @@ export default async function RootLayout({ children }: { children: any }) {
8284 const pageMap = await getPageMap ( ) ;
8385
8486 return (
85- < html lang = "en" dir = "ltr" { ...mantineHtmlProps } >
87+ < html lang = "en" dir = "ltr" { ...mantineHtmlProps } className = { ` ${ inter . className } ${ inter . variable } ` } >
8688 < Head >
8789 < ColorSchemeScript nonce = "8IBTHwOdqNKAWeKl7plt8g==" defaultColorScheme = "dark" />
88- < link rel = "shortcut icon" href = "/lighthouse.png " />
90+ < link rel = "shortcut icon" href = "/favicon.svg" type = "image/svg+xml " />
8991 < meta
9092 name = "viewport"
9193 content = "minimum-scale=1, initial-scale=1, width=device-width, user-scalable=no"
9294 />
9395 </ Head >
9496 < body >
9597 < Providers >
96- < MantineProvider theme = { theme } defaultColorScheme = "auto " >
98+ < MantineProvider theme = { theme } defaultColorScheme = "dark " >
9799 < Layout
98- banner = {
99- < Banner storageKey = "mantine-nextjs-nextra" >
100- ✨ AI powered documentation for ResilientDB Ecosystem and Apps
101- </ Banner >
102- }
100+ // banner={
101+ // <Banner storageKey="mantine-nextjs-nextra">
102+ // ✨ AI powered documentation for ResilientDB Ecosystem and Apps
103+ // </Banner>
104+ // }
103105 navbar = { < MantineNavBar /> }
104106 pageMap = { pageMap }
105107 docsRepositoryBase = "https://github.com/shuding/nextra/tree/main/docs"
106108 footer = { < MantineFooter /> }
107- sidebar = { { defaultMenuCollapseLevel : 1 } }
109+ sidebar = { { defaultMenuCollapseLevel : 1 , toggleButton : true } }
108110 >
109111 { children }
110112 </ Layout >
111113 < FloatingAssistant />
114+ { /* <PocketFlowChatbot /> */ }
112115 </ MantineProvider >
113116 </ Providers >
114117 </ body >
0 commit comments