Skip to content

Commit afecc5b

Browse files
Update llms.txt documentation with analytics and technical details (#1384)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Devin Logan <[email protected]>
1 parent fb02f0e commit afecc5b

File tree

3 files changed

+32
-29
lines changed

3 files changed

+32
-29
lines changed

.vale/styles/FernStyles/Acronyms.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@ exceptions:
6868
- MDX # Fern-specific
6969
- SEO # Fern-specific
7070
- AWS # Fern-specific
71+
- LLM # Fern-specific

fern/products/docs/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ navigation:
194194
path: ./pages/seo/redirects.mdx
195195
- page: llms.txt
196196
path: ./pages/seo/llms-txt.mdx
197+
slug: llms-txt
197198
- section: Authentication
198199
collapsed: true
199200
contents:
Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
---
2-
title: llms.txt
3-
subtitle: Enable tools like Cursor, GitHub Copilot, ChatGPT, and Claude to quickly understand your documentation.
4-
description: Learn how your documentation becomes accessible to AI tools using the llms.txt standard. Make your docs AI-friendly.
5-
layout: guide
2+
title: llms.txt and llms-full.txt
3+
description: Enable tools like Cursor, GitHub Copilot, ChatGPT, and Claude to understand your documentation.
64
---
75

8-
## What is llms.txt?
9-
[LLMs.txt](https://llmstxt.org/) is an emerging standard so that websites can easily expose information to AI developer tools.
10-
LLMs thrive on concise, structured information, and `llms.txt` help them locate and interpret key information in your developer documentation with ease.
11-
No configuration required--your `llms.txt` files are automatically generated and maintained, just like a `sitemap.xml` or `robots.txt`.
12-
13-
### llms.txt
14-
- **Small and fast**: Quick to load and easy to parse.
15-
- **Summary-focused**: Each page distilled into a one-sentence description with its URL.
16-
- **Structured for AI**: Helps tools understand the overall structure of your documentation.
17-
18-
See an example: [docs.cohere.com/llms.txt](https://docs.cohere.com/llms.txt)
19-
20-
### llms-full.txt
21-
- **Comprehensive**: Includes the full content of your documentation.
22-
- **API-Ready**: Automatically incorporates your full API reference and SDK snippets (if generated by Fern).
23-
- **Token efficient**: Removes unnecessary formatting to be as token-efficient as possible.
24-
25-
See an example: [docs.cohere.com/llms-full.txt](https://docs.cohere.com/llms-full.txt)
26-
27-
## View in Action
28-
29-
Check out the llms.txt files for this site:
30-
- `https://buildwithfern.com/learn/llms.txt`
31-
- `https://buildwithfern.com/learn/llms-full.txt`
6+
[llms.txt](https://llmstxt.org/) is a standard for exposing website content to AI developer tools. Fern automatically generates and maintains `llms.txt` and `llms-full.txt` files for your documentation site. When Fern detects an LLM bot accessing your documentation, it automatically serves Markdown instead of HTML, reducing token consumption by 90%+.
327

338
<Frame>
349
<img
3510
src="./llms-txt.png"
3611
alt="Example of using llms.txt"
3712
className="rounded-lg border border-gray-200 dark:border-gray-700"
3813
/>
39-
</Frame>
14+
</Frame>
15+
16+
## `llms.txt`
17+
18+
Contains a lightweight summary of your documentation site with each page distilled into a one-sentence description and URL. The format is structured to help AI tools parse and understand your documentation's hierarchy and organization.
19+
20+
`llms.txt` is available at any level of your documentation hierarchy (`/llms.txt`, `/docs/llms.txt`, `/v1/api-reference/llms.txt`, etc.).
21+
22+
Examples from Eleven Labs:
23+
- Developer documentation (Prompting directory): [elevenlabs.io/docs/best-practices/prompting/llms.txt](https://elevenlabs.io/docs/best-practices/prompting/llms.txt)
24+
- API Reference (Create speech endpoint): [elevenlabs.io/docs/api-reference/text-to-speech/convert/llms.txt](https://elevenlabs.io/docs/api-reference/text-to-speech/convert/llms.txt)
25+
26+
## `llms-full.txt`
27+
28+
Contains complete documentation content including the full text of all pages. For API documentation, this includes your complete API Reference with resolved OpenAPI specifications and SDK code examples for enabled languages. Each API endpoint page includes its full OpenAPI spec.
29+
30+
`llms-full.txt` is available only at the root of your documentation site.
31+
32+
Example from Cash App: [developers.cash.app/llms-full.txt](https://developers.cash.app/llms-full.txt)
33+
34+
## Analytics and monitoring
35+
36+
The [Fern Dashboard](https://dashboard.buildwithfern.com/) provides comprehensive analytics for `llms.txt` usage including:
37+
- Traffic by LLM provider (Claude, ChatGPT, Cursor, etc.)
38+
- Page-level breakdowns of bot vs. human visitors for Markdown and `llms.txt` files
39+
40+
This visibility helps you understand LLM traffic patterns and optimize your documentation for AI consumption.

0 commit comments

Comments
 (0)