Skip to content

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

Open
dylantientcheu wants to merge 2 commits into
v5from
feat/docusaurus-adapter-v5
Open

refactor(docusaurus-adapter): rework theme config for v5 and modularize SearchPage#2904
dylantientcheu wants to merge 2 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

…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>
@netlify

netlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploy Preview for docsearch failed.

Name Link
🔨 Latest commit 336c055
🔍 Latest deploy log https://app.netlify.com/projects/docsearch/deploys/6a46a36b83b49d0008fa8a7d

@netlify

netlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploy Preview for docsearch-demo failed.

Name Link
🔨 Latest commit 336c055
🔍 Latest deploy log https://app.netlify.com/projects/docsearch-demo/deploys/6a46a36bd4a35b0008741269

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.

1 participant