Skip to content

Commit 575001b

Browse files
committed
📃 docs: 文档更新
1 parent 183a11a commit 575001b

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

docs/.vitepress/assets/log.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
22
{
33
"large_version": "v0.0.x",
44
"children": [
5+
{
6+
"version": "0.0.28",
7+
"date": "2025-07-16",
8+
"logs": [
9+
{
10+
"type": "feat",
11+
"text": "package.json 添加 exports 配置"
12+
}
13+
]
14+
},
15+
{
16+
"version": "0.0.26",
17+
"date": "2025-07-09",
18+
"logs": [
19+
{
20+
"type": "feat",
21+
"text": "配置增加 MCP 支持"
22+
},
23+
{
24+
"type": "fix",
25+
"text": "修复 appearance 设置 force 按钮显示问题"
26+
}
27+
]
28+
},
29+
{
30+
"version": "0.0.25",
31+
"date": "2025-05-26",
32+
"logs": [
33+
{
34+
"type": "feat",
35+
"text": "增加自定义 PageClass"
36+
}
37+
]
38+
},
539
{
640
"version": "0.0.24",
741
"date": "2025-04-26",

docs/guide/index.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,44 @@ export default ThemeAsync;
118118
## 配置主题 Config
119119

120120
配置主题 [请看这里](./config)
121+
122+
## TS 类型提示
123+
124+
在 tsconfig 文件里添加 `vitepress-theme-async` 到 types 字段里。
125+
126+
``` ts
127+
{
128+
"compilerOptions": {
129+
//...
130+
"types": ["vitepress-theme-async"]
131+
},
132+
}
133+
```
134+
135+
v0.0.28+ 版本,也可以修改 tsconfig 配置的 moduleResolution 字段,切换到支持识别 package.json 的 exports 字段的模式。
136+
137+
138+
## MCP Server
139+
140+
将下面 JSON 配置添加到 IDE 对应的 MCP 配置文件里,就可以让 AI 帮助修改配置文件里
141+
142+
你只要告诉 AI 你想要通过 修改主题配置信息,示例:
143+
144+
- “主题 vitepress-theme-async 有哪些配置信息”
145+
- “帮我修改 banner 配置, 将背景图换成 xxxx ”
146+
- “帮我修改 关于我 页面配置”
147+
- “.......”
148+
149+
``` json
150+
{
151+
"mcpServers": {
152+
"async配置": {
153+
"command": "npx",
154+
"args": [
155+
"-y",
156+
"vitepress-theme-async-mcp-server@latest",
157+
]
158+
}
159+
}
160+
}
161+
```

0 commit comments

Comments
 (0)