Skip to content

Switch to the DocSearch Docusaurus adapter - #1295

Merged
danbarr merged 3 commits into
mainfrom
switch-to-docsearch-adapter
Nov 5, 2026
Merged

danbarr merged 3 commits into
mainfrom
switch-to-docsearch-adapter

Conversation

@danbarr

@danbarr danbarr commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Replaces the built-in Algolia search theme with @docsearch/docusaurus-adapter (v5) and moves themeConfig.algolia to themeConfig.docsearch. It uses a new search-only API key and the Agent Studio agent for Ask AI.

The sidepanel is not enabled. I tried it and it crowded the navbar.

Type of change

  • Site tooling change (search integration), no docs content changed

Related issues/PRs

🤖 Generated with Claude Code

Visual regression screenshots

Auto-generated by CI from scripts/pr-screenshot-summary.mjs — edits inside this block are overwritten on the next push.

🟡 Changed

Home Page 🔀
/
BeforeAfter
☀️
diff
Before (light)➡️After (light)
🌙
diff
Before (dark)➡️After (dark)
Mcp Guide Context7 Metadata Expanded 🔀
/toolhive/guides-mcp/context7
BeforeAfter
☀️
diff
Before (light)➡️After (light)
🌙
diff
Before (dark)➡️After (dark)
Theme Preview Page 🔀
/theme-preview
BeforeAfter
☀️
diff
Before (light)➡️After (light)
🌙
diff
Before (dark)➡️After (dark)

Copilot AI balanced review requested due to automatic review settings October 30, 2026 16:58
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs-website Ready Ready Preview Nov 5, 2026 2:56pm UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The new Algolia key and Agent Studio agent depend on external configuration, requiring live preview verification of search, prompt suggestions, Ask AI, and light/dark modal and menu readability before approval.

No open issues 🎉

What changed in this PR

Migrates the site's search integration to the DocSearch v5 Docusaurus adapter, including Agent Studio-powered Ask AI and updated theme styling.

Changes:

  • Replaces themeConfig.algolia with themeConfig.docsearch, configuring search, the Ask AI agent, and prompt suggestions.
  • Adds the adapter and pins shared DocSearch packages to 5.2.0 to address duplicate React contexts.
  • Updates search colors and popover styling for light and dark modes.
File Description
src/​css/​custom.css Updates DocSearch variables and menu colors for v5.
package.json Adds the adapter and shared-package version overrides.
package-lock.json Records the updated DocSearch dependency tree.
docusaurus.config.ts Registers the adapter and migrates search and Ask AI configuration.

Review effort: Balanced

@danbarr

danbarr commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

/update-snapshots

@github-actions

Copy link
Copy Markdown
Contributor

📸 Regenerated visual baselines per your /update-snapshots request and pushed a new commit.

danbarr and others added 2 commits November 2, 2026 09:04
Replace the built-in Algolia theme with @docsearch/docusaurus-adapter
and move themeConfig.algolia to themeConfig.docsearch, using a new
search-only API key and the Agent Studio agent for Ask AI.

Pin @docsearch/core, react, and css to 5.2.0 with npm overrides.
preset-classic hoists a 4.x @docsearch/core, which makes npm install a
separate 5.x copy under each adapter package. Each copy has its own
React context, so the modal throws "useDocSearch must be used within
the DocSearch provider". Remove the overrides once
algolia/docsearch#3074 is fixed.

Leave askAi.indices unset because the agent's search tool is in static
mode and rejects per-request index overrides. Point
askAi.promptSuggestions at the stacklok-markdown_prompt_suggestions
index.

Update the DocSearch variables in custom.css for the v5 markup. The
adapter's stock theme leaves the modal transparent in light mode and
uses fixed light colors for hovered rows, keys, and menus in dark mode
(algolia/docsearch#3075).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@danbarr
danbarr merged commit 660ccc3 into main Nov 5, 2026
6 checks passed
@danbarr
danbarr deleted the switch-to-docsearch-adapter branch November 5, 2026 15:13

This branch was successfully deployed

1 active deployment
Preview — 5b3d58fe Deployed Nov 5, 2026 by vercel[bot]
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.

3 participants