[Feature Request] Support llms.txt / llms-full.txt for the documentation site
Author: loicduongCreated Sep 28, 2026Updated Sep 28, 2026
Labelsfeature: need confirm
What problem does this feature solve?
More and more developers use LLM tools to write Vant code. Right now these tools have a hard time reading the Vant docs. The llms.txt proposal is becoming a common way to fix this.
What does the proposed API look like?
When running vant-cli build-site, @vant/cli would write these files to the site output directory:
site-dist/
├── llms.txt # index: title, summary, links to each doc page (.md)
├── llms-full.txt # all docs combined into one file
├── en-US/
│ ├── quickstart.md
│ ├── button.md
│ └── ...
└── zh-CN/
├── quickstart.md
└── ...Example llms.txt, generated from site.locales[lang].nav in vant.config.mjs so the order and groups match the sidebar:
# Vant 4
> Lightweight, customizable Vue 3 mobile UI component library.
## Basics
- [Quickstart](https://vant-ui.github.io/vant/en-US/quickstart.md): Installation and basic usage
- [Advanced Usage](https://vant-ui.github.io/vant/en-US/advanced-usage.md)
- [FAQ](https://vant-ui.github.io/vant/en-US/faq.md)
## Basic Components
- [Button](https://vant-ui.github.io/vant/en-US/button.md)
- [Cell](https://vant-ui.github.io/vant/en-US/cell.md)
- ...
## Optional
- [Changelog](https://vant-ui.github.io/vant/en-US/changelog.md)Source: youzan/vant