Skip to content

Conversation

@samseely
Copy link
Contributor

Summary

  • Add interactive AI assistant sidebar to the docs with streaming chat functionality
  • Implement AskAiContext for global sidebar state management
  • Integrate Streamdown for real-time markdown rendering of streaming LLM responses
  • Add resizable sidebar with persistent width preferences
  • Update page layout to dynamically accommodate sidebar when open

Key features

  • Streaming chat interface: Real-time responses with graceful handling of incomplete markdown
  • Resizable sidebar: Drag to resize between 280px-800px with localStorage persistence
  • Context-aware layout: Page content automatically adjusts when sidebar opens/closes
  • Consistent markdown styling: Uses tgraph-content class for styling consistency with docs
  • Keyboard shortcuts: Enter to send, Shift+Enter for new line

Implementation details

  • Created AskAiContext for managing sidebar open/closed state, width, and resize state
  • Built AskAiSidebar component with message history, input, and streaming support
  • Added AskAiButton to top navigation bar with sparkles icon
  • Integrated useChatStream hook for handling Inkeep API streaming
  • Updated Page component layout to support dynamic sidebar spacing
  • Used Streamdown library for progressive markdown rendering during streaming

Test plan

  • Verify sidebar opens/closes when clicking Ask AI button
  • Test resizing sidebar and confirm width persists on page reload
  • Send test messages and verify streaming responses render correctly
  • Check markdown formatting (code blocks, lists, links) in responses
  • Test keyboard shortcuts (Enter, Shift+Enter)
  • Verify layout responds correctly on different screen sizes
  • Check that sidebar doesn't interfere with existing search functionality

🤖 Generated with Claude Code

@vercel
Copy link

vercel bot commented Jan 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 14, 2026 2:34am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants