llms.txt
Make your documentation easier for LLMs to read and index
The llms.txt file is an emerging standard that helps Large Language Models (LLMs) index content more efficiently, similar to how a sitemap helps search engines. AI tools can use this file to understand your documentation structure and find content relevant to user queries.
Your documentation automatically generates an llms.txt file at the root of your site that lists all available pages. This file is always up to date and requires zero maintenance.
View your llms.txt by visiting /llms.txt at your documentation site's URL.
How it works
The system automatically:
- Scans all markdown files in your documentation
- Extracts frontmatter (title and description) from each page
- Generates a structured list of all pages with their URLs
- Hosts the file at
/llms.txt
llms.txt structure
An llms.txt file is a plain Markdown file that contains:
- Site title as an H1 heading
- Structured content sections with links and descriptions for each page
Each page's description comes from the description field in its frontmatter. Pages without a description field appear in the llms.txt file with just their title.
Example llms.txt:
Reference
titlestringRequiredbaseUrlstringRequiredsummarystringsections{ [section: string]: { title: string; url: string; description: string; }; }
Configuration
Automatic generation
By default, llms.txt is automatically generated from your markdown files. No configuration needed.
Custom baseUrl
To include full URLs in your llms.txt file, configure the baseUrl in your settings:
Customization
You have four options for customizing your llms.txt:
Option 1: Custom sections
Option 2: Custom file
Create an llms.txt file at the root of your project. This completely overrides the auto-generated file:
Option 3: Custom path to a file
Reference a custom markdown file in your settings:
Option 4: Inline markdown
Provide markdown content directly in your settings:
Benefits for AI tools
The llms.txt file helps AI assistants like Claude, ChatGPT, and others:
- Discover available documentation quickly without crawling
- Understand content structure at a high level
- Find relevant pages for specific user queries
- Provide accurate answers with proper context
This improves the accuracy and speed of AI-assisted documentation searches and support.
Disabling llms.txt
To disable automatic llms.txt generation, set it to false in your settings:
Related resources
- llms.txt specification - Official format documentation
- Why llms.txt matters - Understanding the standard
Show your support! Star us on GitHub ⭐️