Repository navigation
chore: v2.5.0 - Let a plugin replace the search dialog, and show Ask AI buttons for providers that… - #477
Merged
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
There was a problem hiding this comment.
✅ 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.mdis removed now that it has been applied. - Changelog entry —
packages/flame/CHANGELOG.mdgains a## 2.5.0minor entry that matches the #476 changeset word for word. - Version bump —
packages/flame/package.jsongoes from2.4.0to2.5.0.
Release scope checked against the linked group:
- Releasing only
flameis expected. Nothing underpackages/*depends on@docubook/flame, and none of the other linked packages has a pending changeset. plugins/search-algoliapeers on@docubook/flame: workspace:^, and2.5.0is still inside that range, so the plugin does not get a bump.- The plugin is
private: trueat0.0.0, so this release does not publish it. The changelog places it "in the repository'splugins/directory", which is accurate. - The changelog promises the
SearchProvider,SearchProviderConfigandSearchProviderFactoryexports andDevServerContext.assetsPath. All four exist inpackages/flame/.docu/node/plugin.ts.
claude-opus-5-5 | 𝕏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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
93f897fThanks @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. Itsmodulepath, 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⌘ Kshortcut, 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.DevServerContextgainsassetsPath, the URL path the dev server serves the bundles from (/assets, or<basePath>/_flamewithexperimental.pages). A plugin that writes files intoBuildEndContext.assetsDircan serve the same files there duringflame dev. TheSearchProvider,SearchProviderConfigandSearchProviderFactorytypes are exported from@docubook/flame.The first provider is the new
@docubook/plugin-search-algolia, in the repository'splugins/directory: Algolia DocSearch v5 keyword search plus Ask AI in the DocSearch side panel.