Skip to content

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.

The docs widget searching install: the Ask AI Assistant row, then results grouped under Get started with their page paths
The docs widget groups results by section

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.

The docs widget before typing: popular searches as chips under the search box, two Recent searches, and the Suggested documents below them
The docs widget before the first keystroke
  • 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.

KeyWhat 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
EscCloses the panel

/ opens the panel only when the reader isn’t typing in a field.

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.

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.

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.

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.