Docusaurus

Docusaurus + AI Readiness

Documentation sites are perfect for AI consumption, but they need an llms.txt to make the structure explicit. w2agent builds it from your docs.

Why Documentation Sites Need AI Readiness

Documentation sites are naturally well-structured — they have clear hierarchies, versioning, and technical content. But without llms.txt, AI models treat your docs like any other website, missing the structure that makes documentation valuable.

No structured index

Docusaurus sidebars define structure for humans, but AI models can't parse sidebar configs.

Version confusion

Multiple documentation versions create duplicate content that AI crawlers may not navigate correctly.

Missing TechArticle schemas

Most Docusaurus themes don't include TechArticle JSON-LD that helps AI classify docs.

Search-only discovery

API references and guides are often only discoverable via Algolia search — invisible to AI crawlers.

What w2agent Generates

w2agent reads your Docusaurus docs structure and generates:

static/llms.txt

Maps your documentation hierarchy — categories, guides, API references — into a format AI models understand.

static/llms-full.txt

Full markdown content of every documentation page, concatenated for complete AI ingestion.

robots.txt additions

Ensures AI crawlers can access all documentation versions and categories.

TechArticle JSON-LD

Structured data for each doc page, including dependencies and proficiency level.

Example: Generated llms.txt for a docs site

# MyProject Documentation

> Official documentation for MyProject v2.x

## Getting Started
- [Installation](https://docs.myproject.dev/getting-started/install): How to install MyProject
- [Quick Start](https://docs.myproject.dev/getting-started/quickstart): Build your first project

## API Reference
- [Configuration](https://docs.myproject.dev/api/config): Configuration options
- [CLI Commands](https://docs.myproject.dev/api/cli): Available CLI commands

Docusaurus-Specific Checks

CheckWhat It Tests
llms.txt from docsChecks if your docs site has an llms.txt that maps to your documentation structure.
Structured data for docsValidates TechArticle and SoftwareApplication schemas on documentation pages.

Step-by-Step Integration

1

Run the audit

npx w2agent audit https://your-docs.dev
2

Generate files

npx w2agent generate https://your-docs.dev
3

Add to static/

Copy llms.txt and llms-full.txt to your Docusaurus static/ directory — they'll be served at the site root.

4

Build and deploy

npm run build

MCP Server for Docusaurus

w2agent can deploy an MCP server that lets AI agents query your documentation site directly. Add a postBuild plugin to call the webhook after each build, keeping the index in sync.

Deploy from your terminal

npx w2agent mcp deploy https://your-docs.dev

Learn more about MCP servers →

Audit your Docusaurus site now

Get a free AI readiness score and generate the files your site needs.

Start Free Audit

Run from your terminal

npx w2agent audit https://example.com
npx w2agent generate https://example.com
npx w2agent integrate https://example.com
npx w2agent mcp deploy https://example.com
Docusaurus AI Readiness | w2agent