S
Documentation Platforms

Sphinx

Index Sphinx-generated docs and answer developer questions

What is Sphinx?

Sphinx is the standard documentation generator for Python projects and is used across many languages for technical reference documentation. It produces HTML from reStructuredText and Markdown, often hosted on Read the Docs.

Integration

How BeforeQuery works with Sphinx

Everything you can do once the integration is connected.

Read the Docs support

BeforeQuery crawls Sphinx docs hosted on Read the Docs, readthedocs.io, or self-hosted instances — sitemap discovery works for all.

API reference indexing

Sphinx-generated API references (autodoc output) are crawled and indexed, so users can ask questions about specific classes, methods, and modules.

Version-aware indexing

Index specific Sphinx doc versions and tag them in BeforeQuery. Users always get answers from the version that matches their usage.

Widget injection via template

Add the BeforeQuery widget script to your Sphinx HTML theme's layout.html template to surface chat to all readers.

Setup

How to set it up

1

Add your Sphinx documentation site URL to a BeforeQuery project. BeforeQuery discovers all pages via sitemap.xml.

2

Run the initial crawl. For large API references, the first index may take a few minutes.

3

Inject the widget script into your Sphinx theme's HTML template to display AI chat on your docs site.

Ready to connect Sphinx?

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