vitepress-plugin-llms is capturing all the /hu translations so…
- User
vitepress-plugin-llms is capturing all the
/hutranslations so pantoken.iywahl.com/llms.txt contains all english and hungarian outputs without differentiation. Is this okay? Should it be english only? Should there be a helper prose about translations? Assistant
I'll explore the docs setup to understand how vitepress-plugin-llms is configured and how i18n interacts with it.
Assistant
Let me wait for the exploration to finish before proceeding.
Assistant
I've launched exploration of the plugin config and i18n structure. I'll continue once it reports back.
Assistant
The exploration gives me a complete picture. Let me verify a couple of specifics about the plugin's behavior — how
ignoreFilesglobs match and where prose likedescription/detailsactually lands in the generatedllms.txt— so my recommendation is accurate.Assistant
The README settles it — the plugin author's own guidance. Let me grab the
ignoreFilesand template sections to confirm the mechanics.Assistant
README doesn't detail
ignoreFilesmechanics. Let me confirm the glob matcher and how relative paths are compared in the compiled source.Assistant
Confirmed the mechanics:
ignoreFilesmatches withminimatchagainst the path relative toworkDir(which defaults todocs/), so Hungarian files present ashu/guide/cli.md, etc. — the globhu/**catches them all.ignoreFilesPerOutput.llmsTxt/.llmsFullTxtfilter only the aggregate indexes while leaving per-page markdown generation untouched.Let me read the actual config block so the plan cites it precisely.
Assistant
Here's my assessment before I ask you to pick a direction.
Is it okay? Not really. Right now
llmstxt()runs over VitePress's wholesrcDir(docs/) with noworkDirorignoreFiles, sodocs/hu/**(a full machine-translated mirror of the guides and the entire API reference) gets folded into the samellms.txtandllms-full.txtas English. That roughly doublesllms-full.txtand pollutes the index with derivative, duplicate content in a second language — Hungarian pages add no information an LLM doesn't already get from English, just noise and tokens.Notably, the plugin author says so directly in the README:
For repositories with documentation in other languages: Please do not use this plugin, only English documentation is enough for LLMs.
So English-only is both the conventional and the endorsed choice. The fix is a small config change in config.ts:365 — no new code, using the plugin's built-in
ignoreFiles/ignoreFilesPerOutput(bothminimatchagainst paths relative to , so catches everything).Assistant
Both decisions captured: English-only aggregate indexes with per-page Hungarian
.mdpreserved, plus a one-linedetailsnote. Let me write the plan.Assistant
Now let me make the edit.
Assistant
Change is in. Now let me build the docs to regenerate the llms outputs and verify. This runs the full locale pipeline, so it may take a few minutes.
Assistant
Prior sizes recorded (llms.txt ~92 KB, llms-full.txt ~1.52 MB). Now the build:
Assistant
I'll wait for the build to complete and check on it periodically.
Assistant
The build is running in the background. I'll continue once it completes or signals an error.