mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
aa93cc5e69
* Migrate docs to package-backed geistdocs * update agent install cmd on home page * add copy prompt component usage * update docs test for sitemap inclusion * cut unused components * address docs migration review feedback * address stale review feedback: geistdocs 1.8.2, version icons, cookbook prompts * drop Workflow from OSS products dropdown (self-link) * bump @vercel/geistdocs to 1.11.0 * fix: resolve pnpm-lock.yaml conflict marker from main merge --------- Co-authored-by: Peter Wielander <peter.wielander@vercel.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
30 lines
726 B
TypeScript
30 lines
726 B
TypeScript
'use client';
|
|
|
|
import { Analytics } from '@vercel/analytics/next';
|
|
import { GeistdocsProvider as PackageProvider } from '@vercel/geistdocs/layout';
|
|
import { SpeedInsights } from '@vercel/speed-insights/next';
|
|
import type { ComponentProps } from 'react';
|
|
import { config } from '@/lib/geistdocs/config';
|
|
|
|
type GeistdocsProviderProps = Omit<
|
|
ComponentProps<typeof PackageProvider>,
|
|
'config'
|
|
> & {
|
|
basePath: string | undefined;
|
|
className?: string;
|
|
lang?: string;
|
|
};
|
|
|
|
export const GeistdocsProvider = ({
|
|
basePath: _basePath,
|
|
className: _className,
|
|
lang,
|
|
...props
|
|
}: GeistdocsProviderProps) => (
|
|
<>
|
|
<PackageProvider config={config} lang={lang} {...props} />
|
|
<Analytics />
|
|
<SpeedInsights />
|
|
</>
|
|
);
|