Skip to content

Rebuild llms.txt and llms-full.txt from the translated Markdown - #857

Merged
mishig25 merged 2 commits into
mainfrom
translate-llms
Oct 21, 2026
Merged

mishig25 merged 2 commits into
mainfrom
translate-llms

Conversation

@mishig25

Copy link
Copy Markdown
Contributor

Translated folders used to get the English llms.txt and llms-full.txt copied unchanged, with every URL pointing to the English Markdown. They are now rebuilt with doc-builder's own write_llms_feeds from the translated .md files:

  • Pages: the ones the English feed lists, in its order. The English folder also keeps Markdown of removed pages, which the English feed already leaves out.
  • Titles and content: translated. The titles come from each translated .md file's first heading.
  • URLs: the translated Markdown, under <english base>/<language>/. For example https://huggingface.co/docs/hub/agents-sdk.md becomes https://huggingface.co/docs/hub/ja/agents-sdk.md, and …/docs/transformers/main/x.md becomes …/docs/transformers/main/ja/x.md.
  • Cost: no extra model calls. They're rebuilt only when Markdown or the English feed changed, and uploaded only when the output differs.

Checked against the live Hub data: the rebuilt Korean llms.txt lists the same 274 pages in the same order as the English one, with every URL under /docs/hub/ko/. Added a job test.

🤖 Generated with Claude Code

mishig25 and others added 2 commits October 21, 2026 12:49
They were copied in English, with every URL pointing to the English Markdown.
They are now regenerated with doc-builder's own `write_llms_feeds` from the
translated `.md` files: the pages the English feed lists, in its order, with
translated titles and content, and URLs under `<english base>/<language>/`
(e.g. https://huggingface.co/docs/hub/ja/agents-sdk.md). No extra model calls.
They are rebuilt only when Markdown or the English feed changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mishig25
mishig25 merged commit 2a21e23 into main Oct 21, 2026
4 checks passed
@mishig25
mishig25 deleted the translate-llms branch October 21, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant