Guide

Adding llms.txt to a static site generator

Static site generators have a folder whose contents are copied verbatim to your published site root — so adding an llms.txt is just dropping the file in the right place and rebuilding.

Where the file goes, per generator

Build and verify

Run your build (astro build, hugo, npx @11ty/eleventy, jekyll build) and confirm llms.txt appears at the root of the output directory, then deploy.

Generate it from your content (optional)

For docs-style sites, plugins exist (for Astro Starlight, Docusaurus, MkDocs, VitePress and others) that build the file from your pages automatically. Handy when content changes often — but keep the output curated.

Validate

Paste your domain into the validator to confirm the file is reachable as plain text and every linked URL resolves.

Keep reading

Validate your llms.txt →