import { Layout } from 'nextra-theme-docs' import { Head } from 'nextra/components' import { getPageMap } from 'nextra/page-map' import 'nextra-theme-docs/style.css' import '../styles.css' import { Analytics } from '@vercel/analytics/react' import CustomNavbar from '../components/Navbar/Navbar' import CustomFooter from '../components/Footer/Footer' import PostHogProvider from '../components/Analytics/PostHogProvider' export const metadata = { title: { default: 'LearnHouse Docs', template: '%s – LearnHouse Docs', }, description: 'Official documentation for LearnHouse, the open-source learning management system (LMS). Guides for self-hosting, course creation, AI features, API reference, and more.', keywords: [ 'LearnHouse', 'open source LMS', 'learning management system', 'self-hosted LMS', 'course creation', 'LearnHouse documentation', 'LearnHouse docs', ], metadataBase: new URL('https://docs.learnhouse.app'), robots: { index: true, follow: true, googleBot: { index: true, follow: true, 'max-video-preview': -1, 'max-image-preview': 'large', 'max-snippet': -1, }, }, openGraph: { type: 'website', locale: 'en_US', url: 'https://docs.learnhouse.app', siteName: 'LearnHouse Docs', description: 'Official documentation for LearnHouse, the open-source learning management system (LMS). Guides for self-hosting, course creation, AI features, API reference, and more.', images: [ { url: 'https://docs.learnhouse.app/img/pages/learnhouse-github.png', alt: 'LearnHouse Docs', width: 2051, height: 1016, }, ], }, twitter: { creator: '@getlearnhouse', site: '@getlearnhouse', card: 'summary_large_image', }, icons: { icon: [ { url: '/favicons/favicon-32x32.png', sizes: '32x32', type: 'image/png' }, { url: '/favicons/favicon-16x16.png', sizes: '16x16', type: 'image/png' }, ], apple: '/favicons/apple-touch-icon.png', }, manifest: '/favicons/site.webmanifest', } export default async function RootLayout({ children }) { return ( } navbar={<>} nextThemes={{ forcedTheme: 'light', defaultTheme: 'light' }} > {children} ) }