Skip to content

feat: llms.txt should include full page content, not just TOC #138

Description

@rohilsurana

Problem

`src/server/routes/llms.txt.ts` and `src/lib/llms.ts` currently generate a table-of-contents-style output with just titles and URLs. The actual page content is not included, making the `llms.txt` output insufficient for LLM consumption.

`get-llm-text.ts` does fetch processed page content for individual pages, but the index route only lists titles.

Expected Behavior

The `llms.txt` endpoint should follow the emerging `llms.txt` convention:

  • `/llms.txt` — index with titles, descriptions, and URLs
  • `/llms-full.txt` — full content dump of all pages (for smaller sites)
  • Individual page `.md` routes already work via `[...slug].md.ts`

The index should at minimum include page descriptions alongside titles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions