Skip to content

Commit e09f229

Browse files
authored
docs: generate llms.txt (#715) (#1047)
Co-authored-by: Rush Ali <[email protected]> closes #715 #1047
1 parent f39464c commit e09f229

File tree

4 files changed

+382
-0
lines changed

4 files changed

+382
-0
lines changed

docs/.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 = 'Frontend-Tooling der nächsten Generation'
@@ -509,6 +511,25 @@ export default defineConfig({
509511
'.gitlab-ci.yml': 'vscode-icons:file-type-gitlab',
510512
},
511513
}),
514+
llmstxt({
515+
ignoreFiles: ['blog/*', 'blog.md', 'index.md', 'team.md'],
516+
description: 'Das Build-Tool für das Web',
517+
details: `\
518+
- 💡 Sofortiger Server-Start
519+
- ⚡️ Blitzschnelles HMR
520+
- 🛠️ Reich an Funktionen
521+
- 📦 Optimierter Build-Prozess
522+
- 🔩 Universelle Plugin-Schnittstelle
523+
- 🔑 Vollständig typisierte APIs
524+
525+
Vite ist eine neue Art von Frontend-Build-Tool, das die Frontend-Entwicklung erheblich verbessert. Es besteht aus zwei Hauptkomponenten:
526+
527+
- Ein Entwicklungs-Server, der Quelldateien über [native ES-Module](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) bereitstellt, mit [umfangreichen integrierten Funktionen](https://vite.dev/guide/features.html) und erstaunlich schnellem [Hot Module Replacement (HMR)](https://vite.dev/guide/features.html#hot-module-replacement).
528+
529+
- Ein [Build-Befehl](https://vite.dev/guide/build.html) der Code mit Hilfe von [Rollup](https://rollupjs.org) bündelt und so konfiguriert ist, dass hochoptimisierte statische Assets für die Produktion erzeugt werden.
530+
531+
Darüber hinaus ist Vite über seine [Plugin-API](https://vite.dev/guide/api-plugin.html) und [JavaScript-API](https://vite.dev/guide/api-javascript.html) mit vollständiger Typisierungsunterstützung stark erweiterbar.`,
532+
}) as PluginOption,
512533
],
513534
optimizeDeps: {
514535
include: [

docs/public/_redirects

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ https://vitejs.dev/* https://vite.dev/:splat 301!
88
/guide/comparisons /guide/why#how-vite-relates-to-other-unbundled-build-tools 301
99
/guide/comparisons.html /guide/why#how-vite-relates-to-other-unbundled-build-tools 301
1010

11+
# llms.txt
12+
/*.txt /:splat.md 301
13+
/llms.md /llms.txt 301
14+
/llms.txt /llms.txt 200!
15+
/llms-full.txt /llms-full.txt 200!
16+
17+
# short links
1118
/rolldown /guide/rolldown 301

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"typescript-eslint": "^8.46.3",
6161
"vitepress": "^1.6.4",
6262
"vitepress-plugin-group-icons": "^1.6.5",
63+
"vitepress-plugin-llms": "^1.9.2",
6364
"vue": "^3.5.23"
6465
}
6566
}

0 commit comments

Comments
 (0)