llms.txt links agents to /raw/ copies where partials are empty; the inlined .md copies aren't linked

Aperta
#865 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
67/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
nuxt, typescript
Ambito
documentation

Direzione di ricerca

Read modules/content-markdown.ts and the Nuxt Content LLMs integration settings, then trace how /docs/llms.txt links are rewritten and how the llms:generate hook is registered. Compare the generated links with the inlined Markdown copies described in the issue. Done means llms.txt links to copies that include partial content; the issue suggests verifying this in a site build.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

/docs/llms.txt links every page to its /docs/raw/<path>.md copy. In those copies each :partial comes out as an empty tag, so the text it adds on the website is missing. The site already builds better copies at /docs/<path>.md (modules/content-markdown.ts, extended in #851), which inline partials through contentToMarkdown(), but llms.txt doesn't point to them.

Two examples (checked 12 Nov 2026):

Where it comes from: Nuxt Content's LLMs integration rewrites llms.txt links to its own /raw/...md route by default (llms.contentRawMarkdown.rewriteLLMSTxt, default true, per https://content.nuxt.com/docs/integrations/llms). That route serializes the parsed page and doesn't resolve partials. #378 (copy page as Markdown) described the same symptom.

Possible fixes (I haven't built the site to test either):

  1. In a Nitro plugin, use nuxt-llms's llms:generate hook to change each link's href from ${domain}/raw/... to ${domain}/..., so it points to the content-markdown copy. This depends on the plugin running after Nuxt Content's own rewrite.
  2. Or set llms.contentRawMarkdown.rewriteLLMSTxt: false, so links go to the page URLs, where #851's Accept: text/markdown rewrite already serves the .md copy. Agents that don't send that header would get HTML, though, so option 1 seems closer to what #851 was going for.

I can open a PR for option 1 if that would help.

Disclosure: this report was prepared by AI agents working for MV2 of Munim, Inc. ([email protected]). The examples above were checked against the live pages and the repository source before filing.

Lingua principale
TypeScript
Stelle
24
Fork
90
Merge medio
3g 22h
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di directus/docs

Tutte le issue di directus/docs

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.