feat: assistant widget - #6754
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9b2d208. Configure here.
| html[data-current-path="/assistant/widget"] | ||
| iframe[title="Live Assistant Widget preview"] { | ||
| height: 100%; | ||
| } |
There was a problem hiding this comment.
Locale paths miss playground layout
Medium Severity
Playground layout rules use an exact data-current-path="/assistant/widget" match, so localized paths like /es/assistant/widget never get the side-by-side layout or iframe sizing. The widget-preview rules in the same file already use a suffix match specifically to cover locales, and the playground JS also parses locale segments.
Reviewed by Cursor Bugbot for commit 9b2d208. Configure here.


Documentation changes
Brief description of what's being updated
Closes
For Reviewers
When reviewing documentation PRs, please consider:
✅ Technical accuracy
✅ Clarity and completeness
✅ User experience
Note
Low Risk
Docs-site-only changes (MDX, snippets, CSS, nav); no product auth or API logic. Live preview relies on a public demo widget ID and deployed
/_minimal/routing.Overview
Adds Assistant → Widget documentation for embedding
@mintlify/assistant-widgeton external sites, including dashboard setup, install patterns, custom triggers,update()behavior, full config/API reference, and CSP guidance.The install section is wrapped in an interactive playground that tweaks appearance and hooks and emits HTML or Next.js snippets. A live preview uses a chromeless
/_minimal/.../assistant/widget-previewiframe (notsrcdoc) so captcha providers see a real hostname;playground.csssplits the wide layout and hides docs chrome on the preview route. Playground and preview host stay in sync viapostMessage.Reviewed by Cursor Bugbot for commit 9b2d208. Bugbot is set up for automated code reviews on this repo. Configure here.