Commit 3fdcaf4
fix(docs): dropdown bg in dark mode, MCP sidebar sync, Safari copy (#6402)
- Add missing --c-slate-1 dark-mode definition in custom-colors.css; bg-slate-1
resolves through this var, which was undefined in dark mode and caused the
copy-page popover (and any other bg-slate-1 surface) to render transparent.
- In SidebarState.sidebar_index, route MCP doc paths to index 1 so the MCP
category is selected when landing directly on /docs/ai-builder/integrations/mcp-*.
- Fix copy-page button on Safari: rewrite to use navigator.clipboard.write with
a ClipboardItem whose data is a Promise. Calling clipboard.write synchronously
inside the click handler preserves Safari's user-gesture requirement; the
prior fetch().then(writeText) chain only worked in Chromium.
- Remove the llms-full.txt entry from the copy-page dropdown.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e6e3784 commit 3fdcaf4
3 files changed
Lines changed: 14 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
456 | 466 | | |
457 | 467 | | |
458 | 468 | | |
459 | 469 | | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
| 470 | + | |
470 | 471 | | |
471 | 472 | | |
472 | 473 | | |
| |||
523 | 524 | | |
524 | 525 | | |
525 | 526 | | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | 527 | | |
533 | 528 | | |
534 | 529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
0 commit comments