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

Đang mở
#865 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
67/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
nuxt, typescript
Lĩnh vực
documentation

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

/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.

Ngôn ngữ chính
TypeScript
Star
24
Fork
90
Merge trung bình
3 ngày 22 giờ
Pull request đã merge (30 ngày)
19

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của directus/docs

Tất cả issue của directus/docs

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.