🚀 Using DocSearch v4 beta with Docusaurus & VitePress #2681
Replies: 2 comments 1 reply
-
|
🚀 Update: VitePress' PR is now merged, use the latest VitePress alpha to enjoy DocSearch v4 native integration. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@terad_alrowais |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Important
Heads-up: v4 is still in beta. Expect sharp edges and please report anything odd! We’ll iterate quickly based on your feedback. ❤️
✨ What’s new in v4?
Chat-style “Ask AI” answers (optional, powered by your own LLM key)
Updated default theme & a11y improvements
1. Docusaurus (v4 beta)
1-a Create or open your site
1-b Swap in the v4 beta tarballs
Edit
package.jsonand replace the usual deps:Because those tarballs pull other Docusaurus internals, add a
resolutionsblock (Yarn/PNPM) or the npm-equivalent overrides:Then install:
1-c Configure DocSearch (and optional Ask AI)
In
docusaurus.config.js:💡 Full options: https://docusaurus.io/docs/search#connecting-algolia
See it live
Fork / play with this Codesandbox: https://codesandbox.io/p/devbox/7vmqn4
2. VitePress (v4 beta)
Use the latest VitePress alpha
🤔 FAQ / Trouble-shooting
yarn build. Thencd packages/<your_package>. and runnpm pack, copy the tarball in your project and use it in your package json@docusaurus/your-plugin: "file:./your-plugin-3.8.1.tgz.🙏 We need your feedback!
Does the tarball approach work smoothly on your infra (CI, lockfile, etc.)?
Any missing peer-deps or TypeScript errors?
Are the Ask AI defaults sensible? What would you tweak?
Please drop comments below or open issues with the v4-beta label.
Happy hacking! 🔍✨
Note
This is only temporary patch, we are working with Docusaurus/VitePress to get these through their next release cycle if possible.
Beta Was this translation helpful? Give feedback.
All reactions