From 1bcd3a23157705c2c829c6001a870fdc53aa64c1 Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Thu, 25 Sep 2025 14:25:07 +0200 Subject: [PATCH] Improve assistant demo -Accept light & dark mode (passed down by iframe context) - add demo questions, used in docs - fix icon shrinking --- .../[siteData]/~gitbook/embed/demo/route.ts | 16 ++++++++++++++-- .../src/components/AIChat/AIChatInput.tsx | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/gitbook/src/app/sites/static/[mode]/[siteURL]/[siteData]/~gitbook/embed/demo/route.ts b/packages/gitbook/src/app/sites/static/[mode]/[siteURL]/[siteData]/~gitbook/embed/demo/route.ts index 5c5bb50bf1..28a4f61622 100644 --- a/packages/gitbook/src/app/sites/static/[mode]/[siteURL]/[siteData]/~gitbook/embed/demo/route.ts +++ b/packages/gitbook/src/app/sites/static/[mode]/[siteURL]/[siteData]/~gitbook/embed/demo/route.ts @@ -16,7 +16,9 @@ export async function GET( return new Response( ` - + + + @@ -66,7 +68,7 @@ export async function GET( - + @@ -105,6 +107,16 @@ export async function GET( + `, { diff --git a/packages/gitbook/src/components/AIChat/AIChatInput.tsx b/packages/gitbook/src/components/AIChat/AIChatInput.tsx index 8cbaed3ab3..437291d12a 100644 --- a/packages/gitbook/src/components/AIChat/AIChatInput.tsx +++ b/packages/gitbook/src/components/AIChat/AIChatInput.tsx @@ -140,7 +140,7 @@ export function AIChatInput(props: { {t(language, 'ai_chat_context_title')} - +