xyd 0.1.0-beta - Coming Soon

AI
/
llms.txt

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:

  1. Scans all markdown files in your documentation
  2. Extracts frontmatter (title and description) from each page
  3. Generates a structured list of all pages with their URLs
  4. 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

    title
    string
    Required
    Title of the LLMs txt
    baseUrl
    string
    Required
    Base URL of the LLMs txt
    summary
    string
    Description of the LLMs txt
    sections
    { [section: string]: { title: string; url: string; description: string; }; }
    Sections of the LLMs txt

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:

Built with

Show your support! Star us on GitHub ⭐️