okineadev/vitepress-plugin-llms

📜 A VitePress plugin for generating LLM-friendly documentation

What it solves

Traditional documentation websites are designed for human readers, often containing heavy styling and layout elements that make it difficult for AI models to parse and understand the content. This plugin converts your VitePress documentation into a clean, machine-readable format that LLMs can process efficiently.

How it works

Once added to your VitePress configuration, the plugin automatically generates an llms.txt file (a directory of your documentation links) and an llms-full.txt file (a single file containing all your documentation content) during the build process. It also creates LLM-friendly Markdown versions of every page on your site. You can further refine the output by using special tags: <llm-only> to include content meant exclusively for AI, or <llm-exclude> to hide specific sections from AI models.

Who it’s for

This plugin is for developers and technical writers who maintain documentation using VitePress and want to ensure their projects are easily accessible and indexable by AI assistants and LLM-based tools.

Highlights

  • Follows the official llmstxt.org v2 standard for AI-friendly documentation.
  • Zero-configuration setup that works out of the box.
  • Optional UI components allow human visitors to easily copy or download pages as raw Markdown.
  • Supports multilingual sites by integrating with VitePress internationalization settings.
  • Allows content customization via frontmatter descriptions and specific exclusion/inclusion tags.

Related

  • Project
  • Project
  • Project
  • Project
  • Project