Skip to content

refactor(docusaurus-adapter): rework theme config for v5 and modularize SearchPage#2904

Merged
dylantientcheu merged 9 commits into
v5from
feat/docusaurus-adapter-v5
Jul 15, 2026
Merged

refactor(docusaurus-adapter): rework theme config for v5 and modularize SearchPage#2904
dylantientcheu merged 9 commits into
v5from
feat/docusaurus-adapter-v5

Conversation

@dylantientcheu

@dylantientcheu dylantientcheu commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Drops legacy themeConfig.algolia support in favor of themeConfig.docsearch only, replacing searchPagePath with searchPage.path / searchPage: false
  • Removes the lodash/utility-types dependencies from the adapter and adds @docsearch/core, @docsearch/modal, @docsearch/sidepanel, and search-insights as direct deps
  • Splits the monolithic SearchPage into dedicated components/, hooks/, constants.ts, types.ts, and utils.ts for maintainability
  • Tightens validateThemeConfig schemas (e.g. .unknown(false) on side panel schemas) and updates docs/examples accordingly
  • Adds adapters/**/src/**/*.test.ts to the Vitest include globs so adapter tests run in the workspace test suite

Test plan

  • bun run test --run adapters/docusaurus-theme-search-algolia/src/__tests__/validateThemeConfig.test.ts passes (23/23)
  • bun run test:types
  • bun run lint
  • Manual smoke test of the Docusaurus search page (search, facets, Ask AI side panel) against the updated theme config

@netlify

netlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploy Preview for docsearch ready!

Name Link
🔨 Latest commit 37970a7
🔍 Latest deploy log https://app.netlify.com/projects/docsearch/deploys/6a578eb9a3b4ce00077ad726
😎 Deploy Preview https://deploy-preview-2904--docsearch.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploy Preview for docsearch-demo ready!

Name Link
🔨 Latest commit 37970a7
🔍 Latest deploy log https://app.netlify.com/projects/docsearch-demo/deploys/6a578eb9e2ebac0008c1d05f
😎 Deploy Preview https://deploy-preview-2904--docsearch-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

dylantientcheu and others added 9 commits July 15, 2026 09:39
…ze SearchPage

Drops the legacy themeConfig.algolia config in favor of themeConfig.docsearch
exclusively (with searchPage.path replacing searchPagePath), removes the
lodash dependency, and splits the monolithic SearchPage into dedicated
components, hooks, and utils for maintainability.

Co-authored-by: Cursor <cursoragent@cursor.com>
…s on MCP docs (#2917)

* feat(website): one-command CLI install + Segment install-intent events on MCP docs

- MCPInstall: terminal-style 'One-command install' section between the
  client picker and the step-by-step panel; the setup flag follows the
  selected client and the section collapses for clients the CLI does not
  support (cursor, claude, codex, opencode only)
- Segment (lazy-loaded @segment/analytics-next): 'Install Command Copied'
  on the CLI one-liner, 'Install Config Copied' on config code cards
  (client/mode/caption), 'Install Button Clicked' on the Cursor deeplink
- installation.mdx: introduce the CLI as the fastest path

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: ci

* fix: lint

* fix sizing

* fix

* rm: pnpm lock
@8bittitan
8bittitan force-pushed the feat/docusaurus-adapter-v5 branch from ce97308 to 37970a7 Compare July 15, 2026 13:44

@8bittitan 8bittitan 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.

🔥

@dylantientcheu
dylantientcheu merged commit 23f3e6b into v5 Jul 15, 2026
10 checks passed
@dylantientcheu
dylantientcheu deleted the feat/docusaurus-adapter-v5 branch July 15, 2026 15:24
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.

2 participants