Skip to content

Commit 4357875

Browse files
committed
feat: llms.txt support for tutorial discovery
1 parent 5624d13 commit 4357875

File tree

13 files changed

+5055
-16
lines changed

13 files changed

+5055
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ pnpm-debug.log*
99
.env.production
1010
.DS_Store
1111
.idea
12+
.worktrees/

astro.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import { readFileSync } from 'node:fs'
2+
import path from 'node:path'
3+
import { fileURLToPath } from 'node:url'
14
import vue from '@astrojs/vue'
25
import tutorialkit from '@tutorialkit/astro'
36
import { defineConfig } from 'astro/config'
4-
import { readFileSync } from 'fs'
5-
import { fileURLToPath } from 'url'
6-
import path from 'path'
7+
import { llmsPlugin } from './src/plugins/llms-plugin'
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()],
2224
},
2325
integrations: [
2426
tutorialkit({

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default antfu({
44
formatters: true,
55
unocss: true,
66
astro: true,
7-
ignores: ['./public/widget.css', './public/widget.js'],
7+
ignores: ['./public/widget.css', './public/widget.js', './docs/**/*.md'],
88
}, {
99
rules: {
1010
'no-console': 'off',

0 commit comments

Comments
 (0)