Files
scriptc/docs/src/app/layout.tsx
T
Chris Tate 5aa450c6b2 docs: migrate to Geistdocs (#611)
* docs: migrate to Geistdocs

* Restore compiler files to main
2026-10-02 00:58:25 -05:00

43 lines
1.5 KiB
TypeScript

import type { Metadata } from "next";
import { Footer } from "@vercel/geistdocs/footer";
import { Navbar } from "@vercel/geistdocs/navbar";
import { GeistSans } from "geist/font/sans";
import { GeistMono } from "geist/font/mono";
import { GeistPixelSquare } from "geist/font/pixel";
import { DocsProvider } from "@/components/geistdocs/provider";
import { config } from "@/lib/geistdocs/config";
import { siteName, siteUrl, tagline, description } from "@/lib/site";
import "./globals.css";
export const metadata: Metadata = {
metadataBase: new URL(siteUrl),
title: { default: `${siteName} | ${tagline}`, template: `%s | ${siteName}` },
description,
alternates: { canonical: "/" },
openGraph: {
type: "website",
locale: "en_US",
url: siteUrl,
siteName,
title: `${siteName} | ${tagline}`,
description,
images: [{ url: "/og", width: 1200, height: 630, alt: siteName }],
},
twitter: { card: "summary_large_image", title: `${siteName} | ${tagline}`, description, images: ["/og"] },
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" suppressHydrationWarning className={`${GeistSans.variable} ${GeistMono.variable} ${GeistPixelSquare.variable} antialiased`}>
<body>
<a href="#main-content" className="skip-link">Skip to content</a>
<DocsProvider>
<Navbar config={config} />
{children}
<Footer />
</DocsProvider>
</body>
</html>
);
}