tailwindcss.com icon indicating copy to clipboard operation
tailwindcss.com copied to clipboard

feat: add llms.txt endpoint for LLM-optimized documentation

Open quantizor opened this issue 2 months ago • 4 comments

Add /llms.txt endpoint that serves a concatenated, text-only version of all Tailwind CSS documentation pages optimized for Large Language Model consumption.

  • Extract text from MDX files, removing JSX components and preserving code blocks
  • Remove standalone HTML blocks (not in code blocks)
  • Extract meaningful content from custom components (ApiTable, ResponsiveDesign, etc.)
  • Statically generate the output at build time
  • Include all 185 documentation files in proper order with sections

:)

quantizor avatar Nov 18 '25 23:11 quantizor

@quantizor is attempting to deploy a commit to the Tailwind Labs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Nov 18 '25 23:11 vercel[bot]

@petersuhm 👋

quantizor avatar Nov 18 '25 23:11 quantizor

As a future enhancement, I'd like to introduce the markdown-to-jsx AST parser https://github.com/quantizor/markdown-to-jsx/pull/725 when it's ready so we can get rid of the gnarly regexes.

quantizor avatar Nov 18 '25 23:11 quantizor

Now that v9 is out, I'll refactor this PR tonight.

quantizor avatar Nov 23 '25 16:11 quantizor

@reinink this is ready to be reviewed

quantizor avatar Dec 17 '25 05:12 quantizor