Skip to content

chore: v2.5.0 - Let a plugin replace the search dialog, and show Ask AI buttons for providers that… - #477

Merged
gitfromwildan merged 1 commit into
mainfrom
changeset-release/main
Nov 6, 2026
Merged

gitfromwildan merged 1 commit into
mainfrom
changeset-release/main

Conversation

@gitfromwildan

Copy link
Copy Markdown
Member

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@docubook/[email protected]

Minor Changes

  • #476 93f897f Thanks @gitfromwildan! - Let a plugin replace the search dialog, and show Ask AI buttons for providers that offer it.

    A plugin declares a search provider on docs pages with a <script type="application/json" id="docubook-search-provider"> block. Its module path, relative to the bundle directory, is imported the first time a reader hovers, focuses or opens search. The module's default export returns { open(), askAi?() }. Flame keeps its own search bar, mobile search icon and ⌘ K shortcut, and opens the provider's UI from them. A declaration that is missing, invalid or points outside the bundle directory leaves the built-in search in place.

    With askAi: true, flame adds a Sparkles button beside the sidebar search bar, an Ask AI row under the GitHub icon and theme toggle in the mobile menu drawer, and ⌘ I / Ctrl I. Ask AI opens the provider's own surface, separate from the search dialog.

    DevServerContext gains assetsPath, the URL path the dev server serves the bundles from (/assets, or <basePath>/_flame with experimental.pages). A plugin that writes files into BuildEndContext.assetsDir can serve the same files there during flame dev. The SearchProvider, SearchProviderConfig and SearchProviderFactory types are exported from @docubook/flame.

    The first provider is the new @docubook/plugin-search-algolia, in the repository's plugins/ directory: Algolia DocSearch v5 keyword search plus Ask AI in the DocSearch side panel.

…AI buttons for providers that…

- @docubook/flame (minor): Let a plugin replace the search dialog, and show Ask AI buttons for providers that offer it
@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Preview Nov 6, 2026 1:39am UTC

@pullfrog pullfrog Bot 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.

✅ No new issues found.

Reviewed changes

Standard-mode review of the Changesets release PR that releases @docubook/flame 2.5.0. Overall: mechanical and correct, verdict READY, no priorities to address.

  • Changeset consumed — .changeset/search-provider-plugins.md is removed now that it has been applied.
  • Changelog entry — packages/flame/CHANGELOG.md gains a ## 2.5.0 minor entry that matches the #476 changeset word for word.
  • Version bump — packages/flame/package.json goes from 2.4.0 to 2.5.0.

Release scope checked against the linked group:

  • Releasing only flame is expected. Nothing under packages/* depends on @docubook/flame, and none of the other linked packages has a pending changeset.
  • plugins/search-algolia peers on @docubook/flame: workspace:^, and 2.5.0 is still inside that range, so the plugin does not get a bump.
  • The plugin is private: true at 0.0.0, so this release does not publish it. The changelog places it "in the repository's plugins/ directory", which is accurate.
  • The changelog promises the SearchProvider, SearchProviderConfig and SearchProviderFactory exports and DevServerContext.assetsPath. All four exist in packages/flame/.docu/node/plugin.ts.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan gitfromwildan self-assigned this Nov 6, 2026
@gitfromwildan
gitfromwildan merged commit 7b5ca9a into main Nov 6, 2026
15 checks passed
@gitfromwildan
gitfromwildan deleted the changeset-release/main branch November 6, 2026 01:55
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