Skip to content

Commit 375d170

Browse files
committed
feat: add llmstxt plugin for LLM docs
1 parent 672db57 commit 375d170

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
dist
22
.astro
33
node_modules
4+
public/llms*.txt
5+
public/tutorial/*.txt
46
npm-debug.log*
57
yarn-debug.log*
68
yarn-error.log*

astro.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { fileURLToPath } from 'node:url'
44
import vue from '@astrojs/vue'
55
import tutorialkit from '@tutorialkit/astro'
66
import { defineConfig } from 'astro/config'
7+
import { llmsPlugin } from 'vite-plugin-llmstxt'
78

89
// Read package version at build time
910
const __filename = fileURLToPath(import.meta.url)
@@ -19,6 +20,7 @@ export default defineConfig({
1920
define: {
2021
'import.meta.env.PACKAGE_VERSION': JSON.stringify(packageJson.version),
2122
},
23+
plugins: [llmsPlugin({ preset: 'tutorialkit' })],
2224
},
2325
integrations: [
2426
tutorialkit({

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"pathe": "^2.0.3",
4747
"prettier-plugin-astro": "^0.14.1",
4848
"typescript": "^5.4.5",
49+
"vite-plugin-llmstxt": "file:/home/maxi/personal/tutorial-kit-llms/vite-plugin-llmstxt-0.0.1.tgz",
4950
"wrangler": "^3.96.0"
5051
}
5152
}

pnpm-lock.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)