mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-30 03:32:48 +00:00
packages/create-app/.gitignore lists `template`, so every scanner that honours ignore files walks straight past nine templates that are tracked in git and shipped by @hanzo/create-docs. Four Next templates declared a face in the root layout and two react-router ones linked a hosted font CDN from `links()`, which means a freshly scaffolded docs site started life on someone else's typeface and a third-party request on every route. Same shape as the apps: `@import '@hanzo/font/css'` at the top of the template's own sheet, one :root block binding --font-zen-sans / --font-zen-mono to --font-sans / --font-mono, and @hanzo/font in the template's dependencies. The waku template named no family at all and fell through to the browser default, so it gets the same mount rather than being left the one scaffold without a face.
13 lines
340 B
TypeScript
13 lines
340 B
TypeScript
import { RootProvider } from '@hanzo/docs/ui/provider/next';
|
|
import './global.css';
|
|
|
|
export default function Layout({ children }: LayoutProps<'/'>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className="flex flex-col min-h-screen">
|
|
<RootProvider>{children}</RootProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|