LLMSdocs
English

Markdown versions of pages and llms-full.txt

The llms.txt proposal asks sites to offer a clean Markdown copy of useful pages at the page's own URL with .md added, and to announce it with standard link relations. llms-full.txt, a single file holding a whole site, is a platform convention outside the proposal.

Type: IntermediateVersionProposal v2.1
On this page
  1. Choosing the URL
  2. What the Markdown file should contain
  3. Serving the file
  4. Letting clients find it
  5. Whole-site files: llms-full.txt and llms-ctx
  6. Putting it together
  7. See also
  8. References

An llms.txt file is an index. The pages it points to are where the content is, and the proposal asks that those pages exist in a form a language model can read without first throwing away navigation, scripts and layout. Its answer is a Markdown copy of each page, published next to the HTML at a predictable address.

Choosing the URL

The Markdown version lives at the same URL as the page, changed in one of two ways. Version 1 of the proposal allowed only the first, appending .md to the full URL. Version 2 also allows replacing the file extension with .md, because some publishing tools already worked that way. A URL that ends in a slash has no file name to extend, so an index file name is added first.

The two URL forms for one documentation site
HTML page.md appendedExtension replaced
/docs/guide.html/docs/guide.html.md/docs/guide.md
/docs/guide//docs/guide/index.html.md/docs/guide/index.md
/docs/guide/docs/guide.md/docs/guide.md

The FastHTML documentation, which the proposal cites, uses the replaced form: the page at https://www.fastht.ml/docs/tutorials/by_example.html has its Markdown at by_example.md in the same directory. Whichever form a site picks, it should use it everywhere, because clients that guess an address will try one pattern and stop.

What the Markdown file should contain

The proposal asks for a clean version of the page and leaves the details to the publisher. In practice that means the page's own content and nothing the site repeats on every page:

  • The title as an H1 and the page's headings at the same levels as in the HTML, so that the structure survives.
  • Code examples as fenced code blocks with a language name, copied from the same source as the HTML so the two never drift apart.
  • Tables as Markdown tables where they are simple, and as lists where cells hold paragraphs.
  • Links that point to the Markdown versions of other pages when those exist, so a tool can keep following clean content.
  • No site navigation, cookie banners, footers, related-content widgets or analytics markup.

Documentation generators that build pages from Markdown sources can usually publish those sources with little extra work. The nbdev tool used by fast.ai and Answer.AI projects, for example, now writes an .md version of every page by default, according to the proposal.

Serving the file

The registered media type for Markdown is text/markdown, defined in RFC 7763 (March 2016). The charset parameter is required for this type, so the header should name the encoding, which for any file published on the web should be UTF-8. An optional variant parameter can name the Markdown flavour; clients are free to ignore it.

HTTP
HTTP/1.1 200 OK
Content-Type: text/markdown; charset=UTF-8
Link: </docs/guide.html>; rel="canonical"
Response headers for a Markdown page

A server with no mapping for the .md extension may send a generic type instead. On nginx, a location block can set the type and the charset for Markdown files only:

Nginx
location ~ \.md$ {
  types { text/markdown md; }
  charset utf-8;
  charset_types text/markdown;
}

The canonical Link header in the response above is optional and is not part of the llms.txt proposal. It tells search engines that the Markdown copy duplicates the HTML page, which keeps the copy from competing with the page in search results; canonical and alternate links explains how search engines treat it.

Letting clients find it

Version 2 of the proposal added discovery through two existing link relation types. A link with rel="alternate" and type="text/markdown" points from a page to its Markdown version. A link with rel="describedby" points to the llms.txt file that covers the page. In HTML they are link elements in the head:

HTML
<link rel="alternate" type="text/markdown" href="/docs/guide.md">
<link rel="describedby" href="/docs/llms.txt">

The same links can be sent as an HTTP Link header, defined in RFC 8288. The header form needs no change to the pages, can be added in server or CDN configuration, and works for responses that have no head at all, including the Markdown files themselves.

HTTP
Link: </docs/guide.md>; rel="alternate"; type="text/markdown", </docs/llms.txt>; rel="describedby"

The meaning of alternate with a type attribute comes from the WHATWG HTML standard, which defines it as a reformulation of the current document in the specified format. Feeds use the same mechanism with application/atom+xml, so existing HTML parsers already handle it.

Real deployments mix these registered relations with their own. A request for one of Mintlify's documentation pages on 5 December 2026 returned a Link header with an entry pointing to /docs/ai/llmstxt.md with rel="alternate" and type="text/markdown", next to relation names of Mintlify's own such as rel="llms-txt", and a separate X-Llms-Txt header. The proposal itself names only alternate and describedby.

Whole-site files: llms-full.txt and llms-ctx

The proposal deals with one index file and many page files. Several single-file formats grew up around it, and none of them is part of the current text.

FileWhere it comes fromContents
llms-ctx.txt and llms-ctx-full.txtDescribed in version 1 of the proposal as the FastHTML project's choice; produced by the llms_txt2ctx command-line toolThe llms.txt file expanded into one document with the content of the linked pages, without and with the links in the Optional section
llms-full.txtA convention of documentation platforms, not of the proposalEvery page of a documentation site in one Markdown file

Version 2 removed the context-expansion tooling and the special meaning of the Optional section from the proposal. It now says that agents are expected to read or search llms.txt and follow the links they need. FastHTML no longer serves llms-ctx.txt at its old address.

llms-full.txt is documented by the platforms that generate it. Mintlify's documentation says the file combines a whole documentation site into one file, with each page given as its title, source URL, description and full Markdown content, and that it is served at /llms-full.txt and /.well-known/llms-full.txt. Cloudflare publishes one at https://developers.cloudflare.com/llms-full.txt, served as text/markdown, while its llms.txt directs readers to a separate llms.txt for each product.

A single file saves a client many requests, but for a large documentation site it can be far larger than a model can take in at once. That is the trade-off Cloudflare's per-product files and the proposal's own index-and-links design both respond to.

Putting it together

  1. Pick one URL form

    Append .md to the full URL, or replace the extension. Decide how directory URLs map to an index file.

  2. Build the Markdown from the page source

    Generate both versions in the same build so a correction reaches both.

  3. Serve text/markdown with a charset

    Check the Content-Type of a few .md URLs with curl -sI after deploying.

  4. Announce the copies

    Add alternate and describedby links to the HTML head or to the Link header.

  5. Link to the .md URLs from llms.txt

    The file lists are where tools start; see llms.txt file format.

See also

  • What llms.txt isllms.txt is a proposed Markdown file, usually served at /llms.txt, that gives language model tools a short description of a site and a curated list of links to read. It is a proposal rather than a standard, and it does not control crawling or training.
  • llms.txt file formatThe structure of an llms.txt file as defined by version 2.1 of the proposal: a required H1 title, an optional summary, Base URL line and details, then H2 sections of annotated links.
  • llms.txt files from documentation sitesSeven llms.txt files published by the proposal's author and by documentation teams at Anthropic, OpenAI, Google, Cloudflare and Stripe, retrieved on 5 December 2026 and compared section by section.
  • Canonical and alternate linksA canonical link names the preferred URL when the same content is reachable at several addresses; alternate links point to translations and to the same page in other formats, such as JSON or Markdown. Both can be written in the HTML head or sent as HTTP Link headers.
  • Serving site files: media types, encoding and status codesWhich Content-Type each machine-readable file should be served with, why UTF-8 matters, and how crawlers react to redirects, client errors and server errors when they request robots.txt.

References

  1. Howard, J. The /llms.txt file, v2.1. llmstxt.org. llmstxt.org (accessed 5 December 2026)
  2. llmstxt.org. Changes (v2, August 2026; v2.1, November 2026). llmstxt.org (accessed 5 December 2026)
  3. Leonard, S. RFC 7763: The text/markdown Media Type. IETF, March 2016. rfc-editor.org
  4. Nottingham, M. RFC 8288: Web Linking. IETF, October 2017. rfc-editor.org
  5. WHATWG. HTML Living Standard: link type "alternate". html.spec.whatwg.org
  6. FastHTML documentation. Tutorial page in Markdown (by_example.md). fastht.ml (accessed 5 December 2026)
  7. Mintlify documentation. llms.txt. mintlify.com (accessed 5 December 2026)
  8. Cloudflare Developer Documentation. llms-full.txt. developers.cloudflare.com (accessed 5 December 2026)
  9. nginx documentation. Module ngx_http_charset_module. nginx.org