Docusaurus AI Integration
AI answers on top of your Docusaurus site
About Docusaurus
Docusaurus is Meta's open-source documentation framework built on React. It is widely used by large open-source projects to publish versioned, searchable documentation sites from Markdown and MDX files.
How BeforeQuery works with Docusaurus
Everything you can do once the Docusaurus integration is connected.
Multi-version doc support
BeforeQuery crawls each versioned path separately. Tag sources as v1, v2, or latest so users always get answers from the correct version of your Docusaurus docs.
Robots.txt and sitemap compliance
The crawler respects your Docusaurus robots.txt and uses the sitemap to discover all pages — including blog posts, API references, and custom pages.
Docusaurus plugin (coming soon)
Install the @beforequery/docusaurus plugin to auto-inject the chat widget into your Docusaurus layout with zero custom code.
Hybrid search across all versions
Users can ask questions about any version of your docs. BeforeQuery uses vector + full-text hybrid search and RRF fusion to surface the most relevant answer.
How to connect Docusaurus
- Step 01
Add your Docusaurus site URL to a BeforeQuery knowledge base. The crawler will discover pages via sitemap.xml and start the first index.
- Step 02
Paste the BeforeQuery widget script tag into your Docusaurus swizzled Layout component to surface AI chat to all visitors.
- Step 03
Configure version labels in the BeforeQuery dashboard so users can filter answers by documentation version.
Related integrations
BeforeQuery crawls your Mintlify docs site, keeps it in sync, and answers user questions with the source shown.
Index your GitBook spaces and let users ask questions with full links back to source pages.
Crawl your ReadMe docs hub and let users ask questions with grounded answers from your reference material.
Docusaurus — Frequently Asked Questions
Common questions about connecting BeforeQuery to Docusaurus.
Ready to connect Docusaurus?
Start free. No credit card required. Connect your first integration in under 5 minutes.