File tree Expand file tree Collapse file tree 6 files changed +1084
-395
lines changed Expand file tree Collapse file tree 6 files changed +1084
-395
lines changed Original file line number Diff line number Diff line change 39
39
- name : Check formatting
40
40
working-directory : ./docs
41
41
run : npm run format:check
42
-
43
- - name : Generate LLM-friendly documentation
44
- working-directory : ./docs
45
- run : node scripts/extract-docs.js
46
-
47
- - name : Upload LLM docs artifact
48
- uses : actions/upload-artifact@v4
49
- with :
50
- name : llm-docs
51
- path : public/llms-full.txt
52
- retention-days : 90
Original file line number Diff line number Diff line change 1
1
node_modules
2
2
.vitepress /dist
3
3
.vitepress /cache
4
- public /llms-full.txt
Original file line number Diff line number Diff line change 1
- import { execSync } from 'child_process'
2
- import { dirname , join } from 'node:path'
3
- import { fileURLToPath } from 'node:url'
4
1
import { defineConfig } from 'vitepress'
2
+ import llmstxt from 'vitepress-plugin-llms'
5
3
import { tabsMarkdownPlugin } from './vitepress-plugin-tabs/tabsMarkdownPlugin'
6
4
7
- const __filename = fileURLToPath ( import . meta. url )
8
- const __dirname = dirname ( __filename )
9
-
10
5
const title = 'Inertia Rails'
11
6
const description = 'Documentation for Inertia.js Rails adapter'
12
7
const site = 'https://inertia-rails.dev'
@@ -21,17 +16,9 @@ export default defineConfig({
21
16
22
17
vite : {
23
18
plugins : [
24
- {
25
- name : 'generate-llm-docs' ,
26
- buildStart ( ) {
27
- // Regenerate LLM docs before build
28
- console . log ( 'Regenerating LLM documentation...' )
29
- execSync ( 'node scripts/extract-docs.js' , {
30
- cwd : join ( __dirname , '..' ) ,
31
- } )
32
- console . log ( 'LLM documentation updated!' )
33
- } ,
34
- } ,
19
+ llmstxt ( {
20
+ depth : 2 ,
21
+ } ) ,
35
22
] ,
36
23
} ,
37
24
You can’t perform that action at this time.
0 commit comments