Skip to content

Commit f4545ac

Browse files
committed
Fix miss commit
Signed-off-by: Lilyltt <[email protected]>
1 parent 00210db commit f4545ac

File tree

13 files changed

+83
-497
lines changed

13 files changed

+83
-497
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ jobs:
1818
- run: yarn install --frozen-lockfile
1919

2020
- name: Build
21-
run: yarn docs:build
21+
run: |
22+
yarn docs/v1:build
23+
yarn docs/v2:build
24+
mkdir -p docs/.vitepress/dist
25+
cp -r docs/v1/.vitepress/dist/* docs/.vitepress/dist/v1/
26+
cp -r docs/v2/.vitepress/dist/* docs/.vitepress/dist/v2/
27+
cp index.html docs/.vitepress/dist/
2228
2329
- name: Deploy
2430
uses: peaceiris/actions-gh-pages@v3

docs/index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
1+
<! http-equiv="refresh" content="0; url=/Lagrange.Doc/v1/">
2+
<html>
33
<head>
4-
<meta charset="UTF-8">
5-
<title>$Title$</title>
4+
<title>跳转中 - Lagrange.Doc</title>
5+
<script type="text/javascript">
6+
window.location.href = "/Lagrange.Doc/v1/"
7+
</script>
68
</head>
79
<body>
8-
$END$
10+
如果您没有被自动重定向,<a href="/Lagrange.Doc/v1/">请点击此处</a>继续。
911
</body>
1012
</html>

docs/v1/.vitepress/config.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import taskLists from "markdown-it-task-lists"
44
import { theme } from "./theme"
55

66
export default defineConfig({
7-
title: "Lagrange 文档",
8-
description: "Lagrange's document",
9-
base: "/Lagrange.Doc/",
7+
title: "Lagrange 文档 v1",
8+
description: "Lagrange v1's document",
9+
base: "/Lagrange.Doc/v1/",
1010
lang: "zh-CN",
1111
markdown: {
1212
config: (md) => {

docs/v1/.vitepress/theme.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ export const theme: DefaultTheme.Config = {
88
},
99
nav: [
1010
{ text: "首页", link: "/" },
11+
{
12+
text: "版本",
13+
base: "",
14+
items: [
15+
{text: "v1", link: "/"},
16+
{text: "v2", link: "../v2/"}
17+
]
18+
},
1119
coreNav,
1220
oneBotNav,
1321
goNav,
@@ -65,4 +73,4 @@ export const theme: DefaultTheme.Config = {
6573
darkModeSwitchLabel: "外观",
6674
lightModeSwitchTitle: "切换到浅色模式",
6775
darkModeSwitchTitle: "切换到深色模式",
68-
}
76+
}

docs/v2/.vitepress/catalogue.ts

Lines changed: 11 additions & 265 deletions
Original file line numberDiff line numberDiff line change
@@ -5,282 +5,28 @@ export const coreSidebar = {
55
{
66
text: "Lagrange.Core",
77
link: "/Lagrange.Core/",
8-
},
9-
{
10-
text: "Bot 实例",
11-
items: [
12-
{
13-
text: "创建 Bot 实例",
14-
link: "/Lagrange.Core/CreateBot/",
15-
},
16-
],
17-
},
18-
{
19-
text: "登录",
20-
link: "/Lagrange.Core/Login/",
21-
items: [
22-
{
23-
text: "扫码登录",
24-
link: "/Lagrange.Core/Login/LoginByScanQrCode",
25-
},
26-
{
27-
text: "密码登录",
28-
link: "/Lagrange.Core/Login/LoginByPassword",
29-
},
30-
{
31-
text: "扩展",
32-
link: "/Lagrange.Core/Login/Extern",
33-
},
34-
],
35-
},
36-
{
37-
text: "消息实体",
38-
link: "/Lagrange.Core/MessageEntity/",
39-
items: [
40-
{
41-
text: "消息实体接口",
42-
link: "/Lagrange.Core/MessageEntity/IMessageEntity",
43-
},
44-
{
45-
text: "表情消息",
46-
link: "/Lagrange.Core/MessageEntity/FaceEntity",
47-
},
48-
{
49-
text: "文件消息",
50-
link: "/Lagrange.Core/MessageEntity/FileEntity",
51-
},
52-
{
53-
text: "回复消息",
54-
link: "/Lagrange.Core/MessageEntity/ForwardEntity",
55-
},
56-
{
57-
text: "图片消息",
58-
link: "/Lagrange.Core/MessageEntity/ImageEntity",
59-
},
60-
{
61-
text: "JSON 消息",
62-
link: "/Lagrange.Core/MessageEntity/JsonEntity",
63-
},
64-
{
65-
text: "提及消息",
66-
link: "/Lagrange.Core/MessageEntity/MentionEntity",
67-
},
68-
{
69-
text: "合并转发消息",
70-
link: "/Lagrange.Core/MessageEntity/MultiMsgEntity",
71-
},
72-
{
73-
text: "文本消息",
74-
link: "/Lagrange.Core/MessageEntity/TextEntity",
75-
},
76-
{
77-
text: "视频消息",
78-
link: "/Lagrange.Core/MessageEntity/VideoEntity",
79-
},
80-
{
81-
text: "XML 消息",
82-
link: "/Lagrange.Core/MessageEntity/XmlEntity",
83-
},
84-
],
85-
},
86-
{
87-
text: "消息链",
88-
link: "/Lagrange.Core/MessageChain/",
89-
items: [
90-
{
91-
text: "消息链",
92-
link: "/Lagrange.Core/MessageChain/MessageChain",
93-
},
94-
{
95-
text: "构造消息链",
96-
link: "/Lagrange.Core/MessageChain/MessageBuilder",
97-
},
98-
{
99-
text: "解析消息链",
100-
link: "/Lagrange.Core/MessageChain/ParseMessageChain",
101-
},
102-
],
103-
},
104-
{
105-
text: "事件",
106-
link: "/Lagrange.Core/Event/",
107-
items: [
108-
{ text: "事件委托", link: "/Lagrange.Core/Event/EventInvoker" },
109-
{ text: "事件数据", link: "/Lagrange.Core/Event/EventArgs" },
110-
],
111-
},
112-
{
113-
text: "发送",
114-
link: "/Lagrange.Core/Send/",
115-
items: [
116-
{ text: "发送消息", link: "/Lagrange.Core/Send/SendMessage" },
117-
{
118-
text: "发送消息结果",
119-
link: "/Lagrange.Core/Send/MessageResult",
120-
},
121-
],
122-
},
123-
],
124-
}
125-
126-
export const oneBotSidebar = {
127-
text: "Lagrange.OneBot",
128-
base: "",
129-
items: [
130-
{
131-
text: "Lagrange.OneBot",
132-
link: "/Lagrange.OneBot/",
133-
},
134-
{
135-
text: "快速开始",
136-
items: [
137-
{
138-
text: "快速部署 & 配置",
139-
link: "/Lagrange.OneBot/Config/",
140-
},
141-
{
142-
text: "生成配置文件",
143-
link: "https://lagrangedev.github.io/lagrange-config-generator/",
144-
},
145-
{
146-
text: "自动更新",
147-
link: "/Lagrange.OneBot/AutoUpdate/",
148-
},
149-
{
150-
text: 'Apifox 上的 API 文档',
151-
link: 'https://lagrange-onebot.apifox.cn/',
152-
},
153-
],
154-
},
155-
{
156-
text: "API (Deprecated)",
157-
collapsed: true,
158-
items: [
159-
{
160-
text: "OneBot V11 标准 API",
161-
link: "/Lagrange.OneBot/API/OneBot/",
162-
},
163-
{
164-
text: "拓展 API",
165-
link: "/Lagrange.OneBot/API/Extend/",
166-
items: [
167-
{
168-
text: "获取收藏表情",
169-
link: "/Lagrange.OneBot/API/Extend/#获取收藏表情",
170-
},
171-
{
172-
text: "获取好友历史消息记录",
173-
link: "/Lagrange.OneBot/API/Extend/#获取好友历史消息记录",
174-
},
175-
{
176-
text: "获取群组历史消息记录",
177-
link: "/Lagrange.OneBot/API/Extend/#获取群组历史消息记录",
178-
},
179-
{
180-
text: "构造合并转发消息",
181-
link: "/Lagrange.OneBot/API/Extend/#构造合并转发消息",
182-
},
183-
{
184-
text: "发送合并转发 (群聊)",
185-
link: "/Lagrange.OneBot/API/Extend/#发送合并转发-群聊",
186-
},
187-
{
188-
text: "发送合并转发 (好友)",
189-
link: "/Lagrange.OneBot/API/Extend/#发送合并转发-好友",
190-
},
191-
{
192-
text: "上传群文件",
193-
link: "/Lagrange.OneBot/API/Extend/#上传群文件",
194-
},
195-
{
196-
text: "私聊发送文件",
197-
link: "/Lagrange.OneBot/API/Extend/#私聊发送文件",
198-
},
199-
{
200-
text: "获取群根目录文件列表",
201-
link: "/Lagrange.OneBot/API/Extend/#获取群根目录文件列表",
202-
},
203-
{
204-
text: "获取群子目录文件列表",
205-
link: "/Lagrange.OneBot/API/Extend/#获取群子目录文件列表",
206-
},
207-
{
208-
text: "获取群文件资源链接",
209-
link: "/Lagrange.OneBot/API/Extend/#获取群文件资源链接",
210-
},
211-
{
212-
text: "好友戳一戳",
213-
link: "/Lagrange.OneBot/API/Extend/#好友戳一戳",
214-
},
215-
{
216-
text: "群组戳一戳",
217-
link: "/Lagrange.OneBot/API/Extend/#群组戳一戳",
218-
},
219-
{
220-
text: "设置群组专属头衔",
221-
link: "/Lagrange.OneBot/API/Extend/#设置群组专属头衔",
222-
},
223-
{
224-
text: "设置群消息表情回应",
225-
link: "/Lagrange.OneBot/API/Extend/#设置群消息表情回应",
226-
},
227-
],
228-
},
229-
{
230-
text: "OneBot V11 标准消息链",
231-
link: "/Lagrange.OneBot/Segment/OneBot/",
232-
},
233-
{ text: "拓展消息链", link: "/Lagrange.OneBot/Segment/Extend/" },
234-
],
235-
},
8+
}
2369
],
23710
}
23811

239-
export const goSidebar = {
240-
text: "LagrangeGo",
12+
export const nativeAPISidebar = {
13+
text: "Lagrange.Core.NativeAPI",
24114
base: "",
24215
items: [
24316
{
244-
text: "LagrangeGo",
245-
link: "/LagrangeGo/",
246-
},
247-
{
248-
text: "Bot实例",
249-
items: [{ text: "创建bot实例", link: "/LagrangeGo/CreateBot/" }],
250-
},
251-
{
252-
text: "登录",
253-
items: [
254-
{ text: "登录", link: "/LagrangeGo/Login/" },
255-
{ text: "完整示例", link: "/LagrangeGo/Example/" },
256-
],
257-
},
258-
{
259-
text: "事件",
260-
items: [{ text: "概述", link: "/LagrangeGo/Event/" }],
261-
},
17+
text: "Lagrange.Core.NativeAPI",
18+
link: "/Lagrange.Core.NativeAPI/",
19+
}
26220
],
26321
}
26422

265-
export const pythonSidebar = {
266-
text: "lagrange-python",
23+
export const milkySidebar = {
24+
text: "Lagrange.Milky",
26725
base: "",
26826
items: [
26927
{
270-
text: "lagrange-python",
271-
link: "/lagrange-python/"
272-
},
273-
{
274-
text: "登录",
275-
items: [
276-
{ text: "登录", link: "/lagrange-python/Login" }
277-
]
278-
},
279-
{
280-
text: "事件",
281-
items: [
282-
{ text: "事件", link: "/lagrange-python/Event" }
283-
]
28+
text: "Lagrange.Milky",
29+
link: "/Lagrange.Milky/",
28430
}
285-
]
31+
],
28632
}

docs/v2/.vitepress/config.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import taskLists from "markdown-it-task-lists"
44
import { theme } from "./theme"
55

66
export default defineConfig({
7-
title: "Lagrange 文档",
8-
description: "Lagrange's document",
9-
base: "/Lagrange.Doc/",
7+
title: "Lagrange 文档 v2",
8+
description: "Lagrange v2's document",
9+
base: "/Lagrange.Doc/v2/",
1010
lang: "zh-CN",
1111
markdown: {
1212
config: (md) => {

0 commit comments

Comments
 (0)