From cb92a43568854bd0c51e682f87d92307ecccf82f Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Tue, 4 Aug 2026 11:59:08 -0700 Subject: [PATCH 1/2] improvement(docs): remove Ask AI, add missing surfaces, align sidebar to the app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removes the Ask AI widget, its /api/chat route, and the four deps exclusive to it (@ai-sdk/openai, @ai-sdk/react, ai, streamdown). lib/embeddings and docsEmbeddings stay — /api/search uses them. - Adds --surface-7 and --surface-hover, the last two platform surfaces docs lacked. - Aligns the sidebar with the app's canonical nav chrome: px-2.5 -> px-2, text-small -> text-sm, hover --surface-3 -> --surface-active, and an active hover of --surface-6, matching the Chip the app's sidebar items are built on. --- apps/docs/app/[lang]/layout.tsx | 2 - apps/docs/app/api/chat/route.ts | 363 ------------------ apps/docs/app/global.css | 9 +- apps/docs/components/ai/ask-ai-panel.tsx | 234 ----------- apps/docs/components/ai/ask-ai.tsx | 57 --- .../docs-layout/sidebar-components.tsx | 18 +- apps/docs/package.json | 4 - bun.lock | 10 - 8 files changed, 14 insertions(+), 683 deletions(-) delete mode 100644 apps/docs/app/api/chat/route.ts delete mode 100644 apps/docs/components/ai/ask-ai-panel.tsx delete mode 100644 apps/docs/components/ai/ask-ai.tsx diff --git a/apps/docs/app/[lang]/layout.tsx b/apps/docs/app/[lang]/layout.tsx index 4fb73ecee32..f27d3187e69 100644 --- a/apps/docs/app/[lang]/layout.tsx +++ b/apps/docs/app/[lang]/layout.tsx @@ -3,7 +3,6 @@ import { defineI18nUI } from 'fumadocs-ui/i18n' import { DocsLayout } from 'fumadocs-ui/layouts/docs' import { RootProvider } from 'fumadocs-ui/provider/next' import { Geist_Mono, Inter } from 'next/font/google' -import { AskAI } from '@/components/ai/ask-ai' import { SidebarFolder, SidebarItem, @@ -124,7 +123,6 @@ export default async function Layout({ children, params }: LayoutProps) { {children}