Conversation
|
Is there a way to preview this? |
|
I have included the script to test it |
Not online, AFAIK. Offline by running |
|
I run into this error:
I'd like to suggest to replace the search box instead of adding another button. |
This is a good idea. The UI is a bit too crowded with that new button. |
I'm not convinced about removing the search box – isn't that what people habitually look for? |
It is possible to integrate Kapa in the search bar, without removing it. So we can bundle the two things together. |
Run |
|
By making some experiments, I've seen that we can indeed "swizzle" the Algolia default
This, however, can bring us to two results: By By not I will check if the |
|
Thanks for the assessment! I thought it might be much easier. Is it possible to just put the "Ask AI" button from @fellyph's screenshot to the top right next to the search bar? I think the thing that mostly disliked about the proposed solution is that we spread out the action points from left and top now also to bottom right. |
|
We can add this here, possibly attracting the user's attention until they don't use it. By hiding the other button. Registrazione.schermo.2025-10-08.alle.17.59.17.mov |
|
We can add to the homepage a message about the new Ask AI button |
|
I like the top bar button! |
6fe19bb to
e341f88
Compare
|
This is great. Is it easy to make it a button and move it to the right edge? |
|
I've added i18n, so it is localizable. The Spanish localization is already ok. |
We can swizzle the headbar because |
|
@akirk, it was easier than I thought. No need to swizzle the entire headbar, but the search element. We can have a blue-style button on the right. Registrazione.schermo.2025-10-09.alle.12.57.39.mov |
This pull request adds a new AI assistant widget to the WordPress Playground documentation site by updating the Docusaurus configuration. The widget is integrated via a script and includes custom branding, bot protection, and messaging.
Integration of the AI assistant widget:
Added a new entry to thescriptsarray indocusaurus.config.jsto load the Kapa AI widget, including configuration options for project branding, modal titles, and example questions.How to test it?
npm run build:docs, thennpm run dev:docsSwitching to different locales by using the locale dropdown is not possible on localhost. To test another locale, do this:
And be sure the Kapa UI is in Spanish:
