Skip to content

Commit cb92a43

Browse files
committed
improvement(docs): remove Ask AI, add missing surfaces, align sidebar to the app
- 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.
1 parent fb7fd5b commit cb92a43

8 files changed

Lines changed: 14 additions & 683 deletions

File tree

apps/docs/app/[lang]/layout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { defineI18nUI } from 'fumadocs-ui/i18n'
33
import { DocsLayout } from 'fumadocs-ui/layouts/docs'
44
import { RootProvider } from 'fumadocs-ui/provider/next'
55
import { Geist_Mono, Inter } from 'next/font/google'
6-
import { AskAI } from '@/components/ai/ask-ai'
76
import {
87
SidebarFolder,
98
SidebarItem,
@@ -124,7 +123,6 @@ export default async function Layout({ children, params }: LayoutProps) {
124123
{children}
125124
</DocsLayout>
126125
<Footer />
127-
<AskAI locale={lang} />
128126
</RootProvider>
129127
</body>
130128
</html>

apps/docs/app/api/chat/route.ts

Lines changed: 0 additions & 363 deletions
This file was deleted.

0 commit comments

Comments
 (0)