Skip to content

Commit 553a7e1

Browse files
authored
docs: generate llms.txt (#1912)
1 parent 0040c30 commit 553a7e1

File tree

4 files changed

+314
-1
lines changed

4 files changed

+314
-1
lines changed

.vitepress/config.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import {
55
groupIconMdPlugin,
66
groupIconVitePlugin,
77
} from 'vitepress-plugin-group-icons'
8+
import llmstxt from 'vitepress-plugin-llms'
9+
import type { PluginOption } from 'vite'
810
import { buildEnd } from './buildEnd.config'
911

1012
const ogDescription = '次世代フロントエンドツール'
@@ -476,6 +478,25 @@ export default defineConfig({
476478
'.gitlab-ci.yml': 'vscode-icons:file-type-gitlab',
477479
},
478480
}),
481+
llmstxt({
482+
ignoreFiles: ['blog/*', 'blog.md', 'index.md', 'team.md'],
483+
description: 'The Build Tool for the Web',
484+
details: `\
485+
- 💡 Instant Server Start
486+
- ⚡️ Lightning Fast HMR
487+
- 🛠️ Rich Features
488+
- 📦 Optimized Build
489+
- 🔩 Universal Plugin Interface
490+
- 🔑 Fully Typed APIs
491+
492+
Vite is a new breed of frontend build tooling that significantly improves the frontend development experience. It consists of two major parts:
493+
494+
- A dev server that serves your source files over [native ES modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), with [rich built-in features](https://vite.dev/guide/features.md) and astonishingly fast [Hot Module Replacement (HMR)](https://vite.dev/guide/features.md#hot-module-replacement).
495+
496+
- A [build command](https://vite.dev/guide/build.md) that bundles your code with [Rollup](https://rollupjs.org), pre-configured to output highly optimized static assets for production.
497+
498+
In addition, Vite is highly extensible via its [Plugin API](https://vite.dev/guide/api-plugin.md) and [JavaScript API](https://vite.dev/guide/api-javascript.md) with full typing support.`,
499+
}) as PluginOption,
479500
],
480501
optimizeDeps: {
481502
include: [

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"vite": "^6.2.2",
2424
"vitepress": "1.6.3",
2525
"vitepress-plugin-group-icons": "^1.3.7",
26+
"vitepress-plugin-llms": "^1.1.0",
2627
"vue": "^3.5.13",
2728
"yorkie": "^2.0.0"
2829
},
@@ -34,7 +35,8 @@
3435
},
3536
"pnpm": {
3637
"onlyBuiltDependencies": [
37-
"esbuild"
38+
"esbuild",
39+
"yorkie"
3840
]
3941
}
4042
}

0 commit comments

Comments
 (0)