File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11node_modules
2+ .vscode
23.vitepress /cache
34.vitepress /dist
Original file line number Diff line number Diff line change 11import { defineConfig } from 'vitepress'
22import type { DefaultTheme } from 'vitepress'
3+ import llmstxt from 'vitepress-plugin-llms'
34import cangjie from './cangjie.tmLanguage.json'
45
56const GUIDES : DefaultTheme . NavItemWithLink [ ] = [
@@ -8,6 +9,7 @@ const GUIDES: DefaultTheme.NavItemWithLink[] = [
89 { text : '安装' , link : '/guide/install' } ,
910 { text : '命令行使用' , link : '/guide/command_line' } ,
1011 { text : '已知限制' , link : '/guide/limitation' } ,
12+ { text : 'LLM' , link : '/guide/llm' } ,
1113]
1214
1315export default defineConfig ( {
@@ -30,7 +32,12 @@ export default defineConfig({
3032 detailsLabel : '详细信息'
3133 }
3234 } ,
33-
35+ vite : {
36+ plugins : [ llmstxt ( {
37+ domain : 'https://cjbind.zxilly.dev' ,
38+ description : 'cjbind 是一个自动生成仓颉到 C 库的 FFI 绑定代码的工具' ,
39+ } ) ]
40+ } ,
3441 themeConfig : {
3542 siteTitle : 'cjbind' ,
3643 nav : [
@@ -84,7 +91,7 @@ export default defineConfig({
8491
8592 footer : {
8693 message : '以 MIT 许可证发布' ,
87- copyright : ' 版权所有 © 2024 - 现在 Zxilly' ,
94+ copyright : ` 版权所有 © 2024 - ${ new Date ( ) . getFullYear ( ) } Zxilly` ,
8895 } ,
8996
9097 docFooter : {
Original file line number Diff line number Diff line change 1+ # 关于 AI
2+
3+ 此文档支持 [ llm.txt] ( https://llmstxt.org/ ) 协议,你可以访问 [ llm.txt] ( /llm.txt ) 来获取更多信息。
4+
5+ 你可以将此链接提供给任何支持此协议的 AI 模型,模型将能够理解和使用此文档中的信息。
Original file line number Diff line number Diff line change 1313 "license" : " ISC" ,
1414 "packageManager" : " pnpm@10.6.5" ,
1515 "devDependencies" : {
16- "vitepress" : " 2.0.0-alpha.5"
16+ "vitepress" : " 2.0.0-alpha.5" ,
17+ "vitepress-plugin-llms" : " ^1.1.3"
1718 }
1819}
You can’t perform that action at this time.
0 commit comments