D
Documentation Platforms

Docusaurus

AI answers on top of your Docusaurus site

What is 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.

Integration

How BeforeQuery works with Docusaurus

Everything you can do once the 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.

Setup

How to set it up

1

Add your Docusaurus site URL to a BeforeQuery project. The crawler will discover pages via sitemap.xml and start the first index.

2

Paste the BeforeQuery widget script tag into your Docusaurus swizzled Layout component to surface AI chat to all visitors.

3

Configure version labels in the BeforeQuery dashboard so users can filter answers by documentation version.

Ready to connect Docusaurus?

Start free. No credit card required. Connect your first integration in under 5 minutes.