Skip to content

feat(docs): add Kapa.ai sidebar integration - #221

Merged
damirka merged 5 commits into
mainfrom
feat/kapa-ai-integration
Jun 25, 2026
Merged

feat(docs): add Kapa.ai sidebar integration#221
damirka merged 5 commits into
mainfrom
feat/kapa-ai-integration

Conversation

@jessiemongeon1

Copy link
Copy Markdown
Collaborator

Summary

  • Add Kapa.ai widget configured in sidebar mode with hidden default button
  • Add custom Navbar component with "Ask Move AI" trigger button
  • Add kapa-sidebar.js client module to detect sidebar open/close state and toggle CSS class on <html>
  • Add CSS rules for 500px content shift, navbar adjustment, TOC hiding, and mobile responsiveness

Test plan

  • Run pnpm build locally to verify no build errors
  • Verify Kapa widget loads on the site (requires KAPA_API_KEY_MOVE_BOOK secret)
  • Click "Ask Move AI" button in navbar — sidebar should open on the right
  • Verify content shifts left by 500px when sidebar is open
  • Verify sidebar goes full-screen on mobile (< 768px)
  • Verify button collapses to icon-only below 1400px viewport width

🤖 Generated with Claude Code

jessiemongeon1 and others added 2 commits June 23, 2026 18:19
Add AI-powered knowledge assistant (Kapa.ai) as a sidebar widget.
Includes navbar trigger button, client module for sidebar state
detection, and CSS rules for responsive content shifting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jessiemongeon1
jessiemongeon1 requested a review from damirka June 24, 2026 14:46
- Inject Kapa script via client module to preserve data-color-scheme-selector
  attribute (Docusaurus strips attributes with nested quotes)
- Add dark mode detection so Kapa sidebar follows page theme
- Restyle navbar button to match site's minimal aesthetic
- Restore ColorModeToggle and fix duplicate search bar

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread site/src/clientModules/kapa-sidebar.js Outdated
jessiemongeon1 and others added 2 commits June 25, 2026 14:18
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jessiemongeon1
jessiemongeon1 requested a review from damirka June 25, 2026 19:36

@damirka damirka left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for patching it!

@damirka
damirka merged commit 8ce4dcb into main Jun 25, 2026
6 checks passed
@damirka
damirka deleted the feat/kapa-ai-integration branch June 25, 2026 19:47
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