From c4675d509571426ff0406d6d1db0e4674cdadfd3 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 5 Dec 2025 06:59:18 +0000 Subject: [PATCH 1/2] feat: Add PlaygroundLink component and integrate into docs Co-authored-by: pranay.prakash --- docs/app/docs/[[...slug]]/page.tsx | 2 ++ docs/components/geistdocs/playground-link.tsx | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 docs/components/geistdocs/playground-link.tsx diff --git a/docs/app/docs/[[...slug]]/page.tsx b/docs/app/docs/[[...slug]]/page.tsx index 6da6efc31..7fa878495 100644 --- a/docs/app/docs/[[...slug]]/page.tsx +++ b/docs/app/docs/[[...slug]]/page.tsx @@ -15,6 +15,7 @@ import { } from '@/components/geistdocs/docs-page'; import { EditSource } from '@/components/geistdocs/edit-source'; import { Feedback } from '@/components/geistdocs/feedback'; +import { PlaygroundLink } from '@/components/geistdocs/playground-link'; import { getMDXComponents } from '@/components/geistdocs/mdx-components'; import { OpenInChat } from '@/components/geistdocs/open-in-chat'; import { ScrollTop } from '@/components/geistdocs/scroll-top'; @@ -44,6 +45,7 @@ const Page = async (props: PageProps<'/docs/[[...slug]]'>) => { component: ( + diff --git a/docs/components/geistdocs/playground-link.tsx b/docs/components/geistdocs/playground-link.tsx new file mode 100644 index 000000000..fe96e7e87 --- /dev/null +++ b/docs/components/geistdocs/playground-link.tsx @@ -0,0 +1,15 @@ +import { SquareTerminal } from 'lucide-react'; + +export const PlaygroundLink = () => { + return ( + + + Compiler Playground + + ); +}; From 23252b33e55b67d42789e7da69adf2779b87da73 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 5 Dec 2025 20:59:21 +0000 Subject: [PATCH 2/2] Refactor: Move PlaygroundLink to Footer component Co-authored-by: pranay.prakash --- docs/app/docs/[[...slug]]/page.tsx | 2 - docs/app/layout.tsx | 2 + docs/components/geistdocs/footer.tsx | 81 +++++++++++++++++++ docs/components/geistdocs/playground-link.tsx | 15 ---- 4 files changed, 83 insertions(+), 17 deletions(-) create mode 100644 docs/components/geistdocs/footer.tsx delete mode 100644 docs/components/geistdocs/playground-link.tsx diff --git a/docs/app/docs/[[...slug]]/page.tsx b/docs/app/docs/[[...slug]]/page.tsx index 7fa878495..6da6efc31 100644 --- a/docs/app/docs/[[...slug]]/page.tsx +++ b/docs/app/docs/[[...slug]]/page.tsx @@ -15,7 +15,6 @@ import { } from '@/components/geistdocs/docs-page'; import { EditSource } from '@/components/geistdocs/edit-source'; import { Feedback } from '@/components/geistdocs/feedback'; -import { PlaygroundLink } from '@/components/geistdocs/playground-link'; import { getMDXComponents } from '@/components/geistdocs/mdx-components'; import { OpenInChat } from '@/components/geistdocs/open-in-chat'; import { ScrollTop } from '@/components/geistdocs/scroll-top'; @@ -45,7 +44,6 @@ const Page = async (props: PageProps<'/docs/[[...slug]]'>) => { component: ( - diff --git a/docs/app/layout.tsx b/docs/app/layout.tsx index 2881e7f48..b2e4f9bf7 100644 --- a/docs/app/layout.tsx +++ b/docs/app/layout.tsx @@ -1,4 +1,5 @@ import './global.css'; +import { Footer } from '@/components/geistdocs/footer'; import { Navbar } from '@/components/geistdocs/navbar'; import { GeistdocsProvider } from '@/components/geistdocs/provider'; import { mono, sans } from '@/lib/geistdocs/fonts'; @@ -54,6 +55,7 @@ const Layout = ({ children }: LayoutProps<'/'>) => ( {children} +