Docs widget
The docs widget is a compact search panel for documentation and content sites. A reader opens it with ⌘K, types a question and lands on the section that answers it, not just the page. It reads your site’s own structure, so a crawled site needs no setup beyond the snippet.

Before the reader types
Section titled “Before the reader types”The empty panel shows the reader’s Recent searches and a Suggested list of six documents: the ones you pinned first, then your most popular. To pin up to six, open Search → Setup, pick the collection and use Pinned documents. Each pin can carry an icon from the Lucide set, which also marks it in search results.

What a result shows
Section titled “What a result shows”- Where it lives. Under its name, a result shows the path to it: the page, then the headings between. Ten pages with a “Configuration” heading stay apart before a click.
- Sections under their page. When a page and some of its sections all match, the sections hang under the page.
- The words that matched. When the match is in a section’s text rather than its heading, the result shows that text with the words marked. To keep every result to its heading, turn off Content excerpt on Search → Look.
- Groups like your site’s. Results group under your site’s own sections, which the crawler reads from each page’s sidebar group or breadcrumb. With several groups, each shows up to five results.
To group by page address instead, open the collection’s Settings and add rules under
Result groups, such as /security/**. The first matching rule wins, and rules apply from the
next sync.
Keyboard
Section titled “Keyboard”| Key | What it does |
|---|---|
| ⌘K, Ctrl+K or / | Opens or closes the panel |
| ↑ ↓ | Moves the selection, wrapping at the ends |
| ↵ | Opens the selected result |
| ⌘, Ctrl or Shift + ↵ | Opens it in a new tab |
| Esc | Closes the panel |
/ opens the panel only when the reader isn’t typing in a field.
Light and dark
Section titled “Light and dark”The panel follows the reader’s system setting, and a toggle in its footer overrides it for that reader. The AI Assistant’s chat turns with it. A Background or Text colour set on Search → Look applies in both themes.
Answers from the AI Assistant
Section titled “Answers from the AI Assistant”With the AI Assistant on, an Ask AI Assistant section sits above the results. Its first row is the question the reader typed: one click asks it. The answer comes from your pages and links the ones it used.
Several collections
Section titled “Several collections”Docs, changelog and blog can each be a collection. The panel then opens on a list of them; picking one, or simply typing, searches inside it. A collection that doesn’t come from the crawler shows in the same compact list.
Where the content comes from
Section titled “Where the content comes from”The widget searches what you index. Crawl your website on any stack that renders HTML, or index your build on every deploy of a static site.
Next: Crawl your website, then install the widget.