Skip to content

Commit 0d2357d

Browse files
authored
feat: add llmstxt plugin for LLM docs (#15)
1 parent a9f05f7 commit 0d2357d

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

astro.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +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 './src/plugins/llms-plugin'
7+
import { llmsPlugin } from 'vite-plugin-llmstxt'
88

99
// Read package version at build time
1010
const __filename = fileURLToPath(import.meta.url)
@@ -20,7 +20,7 @@ export default defineConfig({
2020
define: {
2121
'import.meta.env.PACKAGE_VERSION': JSON.stringify(packageJson.version),
2222
},
23-
plugins: [llmsPlugin()],
23+
plugins: [llmsPlugin({ preset: 'tutorialkit', outputDir: 'dist' })],
2424
},
2525
integrations: [
2626
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": "^0.0.2",
4950
"wrangler": "^3.96.0"
5051
}
5152
}

pnpm-lock.yaml

Lines changed: 11 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)