feat(docs): add a plugin to generate documentation for LLMs

pull/4635/head
Okinea Dev 6 months ago
parent d07298120b
commit ce26617724
No known key found for this signature in database
GPG Key ID: 07944BC5E01E7B43

@ -4,6 +4,7 @@ import {
groupIconVitePlugin, groupIconVitePlugin,
localIconLoader localIconLoader
} from 'vitepress-plugin-group-icons' } from 'vitepress-plugin-group-icons'
import llmstxt from 'vitepress-plugin-llms'
import { search as esSearch } from './es' import { search as esSearch } from './es'
import { search as faSearch } from './fa' import { search as faSearch } from './fa'
import { search as koSearch } from './ko' import { search as koSearch } from './ko'
@ -121,7 +122,8 @@ export const shared = defineConfig({
), ),
firebase: 'logos:firebase' firebase: 'logos:firebase'
} }
}) }),
llmstxt()
] ]
} }
}) })

@ -16,5 +16,8 @@
"postcss-rtlcss": "^5.6.0", "postcss-rtlcss": "^5.6.0",
"vitepress": "workspace:*", "vitepress": "workspace:*",
"vitepress-plugin-group-icons": "^1.3.6" "vitepress-plugin-group-icons": "^1.3.6"
},
"dependencies": {
"vitepress-plugin-llms": "^0.0.7"
} }
} }

@ -310,6 +310,10 @@ importers:
version: link:../.. version: link:../..
docs: docs:
dependencies:
vitepress-plugin-llms:
specifier: ^0.0.7
version: 0.0.7
devDependencies: devDependencies:
'@lunariajs/core': '@lunariajs/core':
specifier: ^0.1.1 specifier: ^0.1.1
@ -1982,6 +1986,10 @@ packages:
resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==} resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==}
hasBin: true hasBin: true
markdown-title@1.0.2:
resolution: {integrity: sha512-MqIQVVkz+uGEHi3TsHx/czcxxCbRIL7sv5K5DnYw/tI+apY54IbPefV/cmgxp6LoJSEx/TqcHdLs/298afG5QQ==}
engines: {node: '>=6'}
math-intrinsics@1.1.0: math-intrinsics@1.1.0:
resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
@ -2756,6 +2764,9 @@ packages:
vitepress-plugin-group-icons@1.3.6: vitepress-plugin-group-icons@1.3.6:
resolution: {integrity: sha512-MzUAuMZ43f51dfBKYowW7yv/A2DxIjtN50d8Dcj31nU9RB6GuYBJ48E/Ze88U0bEn4wlnrjMXFh2j2e0rYmGug==} resolution: {integrity: sha512-MzUAuMZ43f51dfBKYowW7yv/A2DxIjtN50d8Dcj31nU9RB6GuYBJ48E/Ze88U0bEn4wlnrjMXFh2j2e0rYmGug==}
vitepress-plugin-llms@0.0.7:
resolution: {integrity: sha512-QJO6yadT6RisxOZE/t92ZAZEnNGL6bwmWXT8knG1ufa3BJbf0rlI4JSjJzc5zxAwzgQmjqjEcnA7xUW8hu15Dg==}
vitest@3.0.8: vitest@3.0.8:
resolution: {integrity: sha512-dfqAsNqRGUc8hB9OVR2P0w8PZPEckti2+5rdZip0WIz9WW0MnImJ8XiR61QhqLa92EQzKP2uPkzenKOAHyEIbA==} resolution: {integrity: sha512-dfqAsNqRGUc8hB9OVR2P0w8PZPEckti2+5rdZip0WIz9WW0MnImJ8XiR61QhqLa92EQzKP2uPkzenKOAHyEIbA==}
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
@ -4554,6 +4565,8 @@ snapshots:
punycode.js: 2.3.1 punycode.js: 2.3.1
uc.micro: 2.1.0 uc.micro: 2.1.0
markdown-title@1.0.2: {}
math-intrinsics@1.1.0: {} math-intrinsics@1.1.0: {}
mathjax-full@3.2.2: mathjax-full@3.2.2:
@ -5295,6 +5308,13 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
vitepress-plugin-llms@0.0.7:
dependencies:
gray-matter: 4.0.3
markdown-title: 1.0.2
minimatch: 10.0.1
picocolors: 1.1.1
vitest@3.0.8(@types/debug@4.1.12)(@types/node@22.13.9)(jiti@1.21.7)(yaml@2.7.0): vitest@3.0.8(@types/debug@4.1.12)(@types/node@22.13.9)(jiti@1.21.7)(yaml@2.7.0):
dependencies: dependencies:
'@vitest/expect': 3.0.8 '@vitest/expect': 3.0.8

Loading…
Cancel
Save