From 07c6b98581833753579db5c0eeaa5ac1be74e707 Mon Sep 17 00:00:00 2001 From: Sarina Li Date: Thu, 16 Oct 2025 16:28:25 -0400 Subject: [PATCH] cookie policy + external links --- docs/src/app/layout.tsx | 6 ++ docs/src/components/analytics-tracker.tsx | 71 +++++++++++++++++++++++ docs/src/components/cookie-consent.tsx | 44 ++++++++++++++ docs/src/components/footer.tsx | 16 +++++ docs/src/mdx-components.tsx | 10 ++++ docs/src/providers/posthog-provider.tsx | 1 - 6 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 docs/src/components/analytics-tracker.tsx create mode 100644 docs/src/components/cookie-consent.tsx create mode 100644 docs/src/components/footer.tsx diff --git a/docs/src/app/layout.tsx b/docs/src/app/layout.tsx index 0aa16d29..e821184e 100644 --- a/docs/src/app/layout.tsx +++ b/docs/src/app/layout.tsx @@ -3,6 +3,9 @@ import { RootProvider } from 'fumadocs-ui/provider'; import { Inter } from 'next/font/google'; import type { ReactNode } from 'react'; import { PHProvider, PostHogPageView } from '@/providers/posthog-provider'; +import { AnalyticsTracker } from '@/components/analytics-tracker'; +import { CookieConsent } from '@/components/cookie-consent'; +import { Footer } from '@/components/footer'; import { Suspense } from 'react'; const inter = Inter({ @@ -20,9 +23,12 @@ export default function Layout({ children }: { children: ReactNode }) { + {children} +