[PR #5002] [MERGED] [cherry-pick] docs fix #31309

Closed
opened 2026-04-17 22:11:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5002
Author: @himself65
Created: 9/30/2025
Status: Merged
Merged: 9/30/2025
Merged by: @himself65

Base: v1.3.x-latestHead: v1.3.x-staging


📝 Commits (4)

  • 9f98b12 docs: add ai chat assistant for better-auth docs (#4735)
  • 9ef1de4 docs: replace with better-fetch and maxDuration for the vercel runtime (#4997)
  • 58ed604 docs: use the correct SHA base on env vars (#5000)
  • 920c2c0 docs: add the Dymo API plugin on community (#5001)

📊 Changes

9 files changed (+403 additions, -36 deletions)

View changed files

docs/app/api/ai-chat/route.ts (+85 -0)
📝 docs/app/docs/[[...slug]]/page.tsx (+1 -1)
📝 docs/app/global.css (+73 -0)
📝 docs/components/ai-chat-modal.tsx (+1 -1)
docs/components/ask-ai-button.tsx (+52 -0)
📝 docs/components/floating-ai-search.tsx (+15 -9)
docs/components/markdown-renderer.tsx (+120 -0)
📝 docs/components/search-dialog.tsx (+55 -25)
📝 docs/content/docs/plugins/community-plugins.mdx (+1 -0)

📄 Description

Summary by cubic

Adds a docs chat assistant with streaming answers and Markdown rendering, plus a new modal entry point in search and a trigger button in the docs UI. Also fixes the Edit on GitHub SHA on Vercel and updates the community plugins page.

  • New Features

    • Added Next.js route to proxy questions to Gurubase with streaming and robust error handling; sets maxDuration=300 for the Vercel runtime.
    • Introduced a chat modal and trigger integrated into the search dialog and header.
    • Added a Markdown renderer with GFM and syntax highlighting, plus scoped CSS for rich content and a streaming cursor effect.
    • Switched request handling in the search flow to better-fetch with typed responses and session persistence.
    • Updated community plugins to include the Dymo API plugin entry.
  • Bug Fixes

    • Edit on GitHub now uses VERCEL_GIT_COMMIT_SHA with a fallback to main.
    • Improved input disabled states and error propagation in the search-powered assistant flow.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5002 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/30/2025 **Status:** ✅ Merged **Merged:** 9/30/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `v1.3.x-latest` ← **Head:** `v1.3.x-staging` --- ### 📝 Commits (4) - [`9f98b12`](https://github.com/better-auth/better-auth/commit/9f98b12b221d35ea96711b18cceece903f1045dd) docs: add ai chat assistant for better-auth docs (#4735) - [`9ef1de4`](https://github.com/better-auth/better-auth/commit/9ef1de40a3a124cce06438cbb735066ca033e92e) docs: replace with better-fetch and maxDuration for the vercel runtime (#4997) - [`58ed604`](https://github.com/better-auth/better-auth/commit/58ed6040dfc4cddcdec597f2b1030acd0c4c1b01) docs: use the correct SHA base on env vars (#5000) - [`920c2c0`](https://github.com/better-auth/better-auth/commit/920c2c0be5ee3eb577587ff40717d81f86ef09e2) docs: add the Dymo API plugin on community (#5001) ### 📊 Changes **9 files changed** (+403 additions, -36 deletions) <details> <summary>View changed files</summary> ➕ `docs/app/api/ai-chat/route.ts` (+85 -0) 📝 `docs/app/docs/[[...slug]]/page.tsx` (+1 -1) 📝 `docs/app/global.css` (+73 -0) 📝 `docs/components/ai-chat-modal.tsx` (+1 -1) ➕ `docs/components/ask-ai-button.tsx` (+52 -0) 📝 `docs/components/floating-ai-search.tsx` (+15 -9) ➕ `docs/components/markdown-renderer.tsx` (+120 -0) 📝 `docs/components/search-dialog.tsx` (+55 -25) 📝 `docs/content/docs/plugins/community-plugins.mdx` (+1 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds a docs chat assistant with streaming answers and Markdown rendering, plus a new modal entry point in search and a trigger button in the docs UI. Also fixes the Edit on GitHub SHA on Vercel and updates the community plugins page. - New Features - Added Next.js route to proxy questions to Gurubase with streaming and robust error handling; sets maxDuration=300 for the Vercel runtime. - Introduced a chat modal and trigger integrated into the search dialog and header. - Added a Markdown renderer with GFM and syntax highlighting, plus scoped CSS for rich content and a streaming cursor effect. - Switched request handling in the search flow to better-fetch with typed responses and session persistence. - Updated community plugins to include the Dymo API plugin entry. - Bug Fixes - Edit on GitHub now uses VERCEL_GIT_COMMIT_SHA with a fallback to main. - Improved input disabled states and error propagation in the search-powered assistant flow. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 22:11:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#31309