M
Documentation Platforms

MkDocs

AI answers for MkDocs and Material for MkDocs sites

What is MkDocs?

MkDocs is a Python-based static site generator for project documentation. The Material for MkDocs theme is widely used in open-source and enterprise projects to produce professional documentation from Markdown files.

Integration

How BeforeQuery works with MkDocs

Everything you can do once the integration is connected.

Sitemap-aware discovery

BeforeQuery reads the MkDocs-generated sitemap.xml to discover all pages, including those in nested nav sections.

Clean content extraction

The crawler strips Material for MkDocs's navigation, sidebar, and footer, extracting only the documentation content for indexing.

Multi-language support

Index MkDocs sites with multiple language variants. BeforeQuery tracks each language path separately.

Deploy hook integration

Trigger a BeforeQuery sync from your CI/CD pipeline after mkdocs build and deploy to keep the index current.

Setup

How to set it up

1

Enter your MkDocs site URL in BeforeQuery. The crawler will use the sitemap.xml to index all pages.

2

Review the crawled page list and configure any URL exclusions for pages you do not want indexed.

3

Add the BeforeQuery widget script to your MkDocs custom_html overrides (overrides/main.html) to embed AI chat.

Ready to connect MkDocs?

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