mirror of
https://github.com/zoo-docs/docs.git
synced 2026-10-30 14:56:26 +00:00
The RootProvider gains the ai prop: the zoo widget key (registered in the cloud widget registry), the docs store, and the free model — zero-cost so it needs no wallet and auto-routed so no single dead upstream darkens it. Co-authored-by: Hanzo Dev <[email protected]>
71 lines
1.9 KiB
TypeScript
71 lines
1.9 KiB
TypeScript
import './global.css';
|
|
import './gui.css';
|
|
import type { Viewport, Metadata } from 'next';
|
|
import type { ReactNode } from 'react';
|
|
import { Geist, Geist_Mono } from 'next/font/google';
|
|
import { RootProvider } from '@hanzo/docs/ui/provider/next';
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
template: '%s | Zoo Docs',
|
|
default: 'Zoo Docs',
|
|
},
|
|
description:
|
|
'Documentation for Zoo Labs Foundation - Democratizing AI through decentralized training.',
|
|
openGraph: {
|
|
title: 'Zoo Docs',
|
|
description:
|
|
'Documentation for Zoo Labs Foundation - Democratizing AI through decentralized training.',
|
|
url: 'https://docs.zoo.ngo',
|
|
siteName: 'Zoo Docs',
|
|
},
|
|
twitter: {
|
|
card: 'summary_large_image',
|
|
creator: '@zoolabs',
|
|
},
|
|
};
|
|
|
|
const geist = Geist({
|
|
variable: '--font-sans',
|
|
subsets: ['latin'],
|
|
});
|
|
|
|
const mono = Geist_Mono({
|
|
variable: '--font-mono',
|
|
subsets: ['latin'],
|
|
});
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: [
|
|
{ media: '(prefers-color-scheme: dark)', color: '#000000' },
|
|
{ media: '(prefers-color-scheme: light)', color: '#ffffff' },
|
|
],
|
|
};
|
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html
|
|
lang="en"
|
|
className={`${geist.variable} ${mono.variable}`}
|
|
suppressHydrationWarning
|
|
>
|
|
<body>
|
|
<RootProvider
|
|
theme={{ defaultTheme: 'dark' }}
|
|
// The index is a static file the export writes; the dialog searches
|
|
// it in the browser — this site has no server to ask.
|
|
search={{ options: { type: 'static' } }}
|
|
ai={{
|
|
token: 'hz_ZNWQesHHPpfxOMJkqx4vmT3Ywj6tNyd9cETcWN2NdBAvxY2G',
|
|
store: 'docs',
|
|
model: 'free',
|
|
greeting: 'Ask about Zoo Labs — DeAI, DeSci, and the research network.',
|
|
}}
|
|
>
|
|
{children}
|
|
</RootProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|