diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-06-21 19:05:27 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-06-21 19:05:27 +0900 |
| commit | 32e2ab7749480d294b79e1e550daae07b778d1d1 (patch) | |
| tree | ab3fe085cc8be7771b3b770d83a4b58d4aa58f9c /package.json | |
| parent | cb3175dfc4f69ee26815d1bcb0d4511b377dddf4 (diff) | |
AI向けに llms.txt と llms-full.txt を生成する仕組みを追加
AI(LLM)がサイトを参照・学習しやすくするため、以下を追加:
- public/llms.txt: 全ページをカテゴリ別に列挙した AI 向けサイトマップ
- scripts/generate-llms-full.mjs: 全 MDX ファイルの本文を収集・結合する生成スクリプト
- package.json の build スクリプトに生成処理を追加
ビルド時に dist/llms.txt と dist/llms-full.txt が自動生成される。
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index 5fa0846..ad8b7c0 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "astro dev", "start": "astro dev", - "build": "astro build && py -c \"import shutil; shutil.copy('public/.htaccess', 'dist/.htaccess')\" && py removeNullCharacters.py", + "build": "astro build && py -c \"import shutil; shutil.copy('public/.htaccess', 'dist/.htaccess')\" && py removeNullCharacters.py && node scripts/generate-llms-full.mjs", "deploy": "sh deploy.sh", "preview": "astro preview", "postinstall": "patch-package", |
