Skip to content

Commit ab12d1f

Browse files
JohnRichard4096Copilot
andcommitted
Docs: English version
Co-authored-by: Copilot <copilot@github.com>
1 parent 9918d50 commit ab12d1f

26 files changed

Lines changed: 2263 additions & 92 deletions

docs/.vitepress/config.mts

Lines changed: 42 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ export default withMermaid({
88
hostname: "https://sense.amritabot.com",
99
},
1010
head: [
11-
[
12-
"link",
13-
{
14-
rel: "icon",
15-
href: "/Amrita.png",
16-
},
17-
],
11+
["link", { rel: "icon", href: "/Amrita.png" }],
1812
[
1913
"meta",
2014
{
@@ -139,12 +133,30 @@ export default withMermaid({
139133
},
140134
{
141135
text: "Built-in Instruction Set",
142-
link: "/guide/advanced/built-in_instruction_set",
143-
},
144-
{
145-
text: "Custom Nodes",
146-
link: "/guide/advanced/custom_node",
136+
items: [
137+
{
138+
text: "Conditional Branch (IF/ELIF/ELSE)",
139+
link: "/guide/advanced/built-in_instruction_set/if_clause",
140+
},
141+
{
142+
text: "Loop Control (WHILE/DO-WHILE)",
143+
link: "/guide/advanced/built-in_instruction_set/while_clause",
144+
},
145+
{
146+
text: "Jump Instructions (GOTO/CALL)",
147+
link: "/guide/advanced/built-in_instruction_set/jump_clause",
148+
},
149+
{
150+
text: "Sentinel Instructions (NOP/INTERRUPT)",
151+
link: "/guide/advanced/built-in_instruction_set/sentinel_clause",
152+
},
153+
{
154+
text: "Exception Handling (TRY/CATCH/THEN/FIN)",
155+
link: "/guide/advanced/built-in_instruction_set/try_clause",
156+
},
157+
],
147158
},
159+
{ text: "Custom Nodes", link: "/guide/advanced/custom_node" },
148160
{
149161
text: "Custom Instructions",
150162
link: "/guide/advanced/custom_instruction",
@@ -158,39 +170,24 @@ export default withMermaid({
158170
{
159171
text: "API Reference",
160172
items: [
161-
{
162-
text: "Core Node Classes",
163-
link: "/reference/api/core-nodes",
164-
},
165-
{
166-
text: "Runtime System",
167-
link: "/reference/api/runtime",
168-
},
169-
{
170-
text: "Type System",
171-
link: "/reference/api/types",
172-
},
173-
{
174-
text: "Exception System",
175-
link: "/reference/api/exceptions",
176-
},
173+
{ text: "Core Node Classes", link: "/reference/api/core-nodes" },
174+
{ text: "Runtime System", link: "/reference/api/runtime" },
175+
{ text: "Type System", link: "/reference/api/types" },
176+
{ text: "Exception System", link: "/reference/api/exceptions" },
177177
{
178178
text: "Self-Compile Instructions",
179179
link: "/reference/api/self-compile",
180180
},
181181
],
182182
},
183-
{ text: "Appendix", link: "#" },
183+
{ text: "Appendix", link: "/guide/appendix" },
184184
],
185185
footer: {
186186
message: `LGPL V2 License`,
187187
copyright: `© Amrita 2025-${new Date().getFullYear()}`,
188188
},
189189
socialLinks: [
190-
{
191-
icon: "github",
192-
link: "https://github.com/AmritaBot/AmritaSense",
193-
},
190+
{ icon: "github", link: "https://github.com/AmritaBot/AmritaSense" },
194191
{ icon: "discord", link: "https://discord.gg/byAD3sbjjj" },
195192
],
196193
},
@@ -201,15 +198,7 @@ export default withMermaid({
201198
title: "AmritaSense - 通用工作流编排引擎",
202199
description:
203200
"一个轻量、高性能的Python通用工作流引擎。专注显式控制流,提供汇编级指令实现精确的异步任务编排。",
204-
head: [
205-
[
206-
"link",
207-
{
208-
rel: "icon",
209-
href: "/Amrita.png",
210-
},
211-
],
212-
],
201+
head: [["link", { rel: "icon", href: "/Amrita.png" }]],
213202
themeConfig: {
214203
siteTitle: "Amrita Sense 文档",
215204
nav: [
@@ -223,10 +212,7 @@ export default withMermaid({
223212
collapsed: false,
224213
items: [
225214
{ text: "概述", link: "/zh/guide/introduction/" },
226-
{
227-
text: "主要特性",
228-
link: "/zh/guide/introduction/key-features",
229-
},
215+
{ text: "主要特性", link: "/zh/guide/introduction/key-features" },
230216
],
231217
},
232218
{
@@ -256,10 +242,7 @@ export default withMermaid({
256242
text: "寻址与数据结构",
257243
link: "/zh/guide/concepts/addressing_and_data",
258244
},
259-
{
260-
text: "流程控制",
261-
link: "/zh/guide/concepts/flow_control",
262-
},
245+
{ text: "流程控制", link: "/zh/guide/concepts/flow_control" },
263246
{
264247
text: "执行与中断",
265248
link: "/zh/guide/concepts/exec_and_interrupt",
@@ -278,10 +261,7 @@ export default withMermaid({
278261
text: "定位与空间",
279262
link: "/zh/guide/advanced/locating_and_space",
280263
},
281-
{
282-
text: "子节点调用",
283-
link: "/zh/guide/advanced/child_node",
284-
},
264+
{ text: "子节点调用", link: "/zh/guide/advanced/child_node" },
285265
{
286266
text: "外部中断",
287267
link: "/zh/guide/advanced/external_interrupt",
@@ -311,10 +291,7 @@ export default withMermaid({
311291
},
312292
],
313293
},
314-
{
315-
text: "自定义节点",
316-
link: "/zh/guide/advanced/custom_node",
317-
},
294+
{ text: "自定义节点", link: "/zh/guide/advanced/custom_node" },
318295
{
319296
text: "自定义指令集",
320297
link: "/zh/guide/advanced/custom_instruction",
@@ -328,26 +305,11 @@ export default withMermaid({
328305
{
329306
text: "API参考",
330307
items: [
331-
{
332-
text: "核心节点类",
333-
link: "/zh/reference/api/core-nodes",
334-
},
335-
{
336-
text: "运行时系统",
337-
link: "/zh/reference/api/runtime",
338-
},
339-
{
340-
text: "类型系统",
341-
link: "/zh/reference/api/types",
342-
},
343-
{
344-
text: "异常系统",
345-
link: "/zh/reference/api/exceptions",
346-
},
347-
{
348-
text: "自编译指令",
349-
link: "/zh/reference/api/self-compile",
350-
},
308+
{ text: "核心节点类", link: "/zh/reference/api/core-nodes" },
309+
{ text: "运行时系统", link: "/zh/reference/api/runtime" },
310+
{ text: "类型系统", link: "/zh/reference/api/types" },
311+
{ text: "异常系统", link: "/zh/reference/api/exceptions" },
312+
{ text: "自编译指令", link: "/zh/reference/api/self-compile" },
351313
],
352314
},
353315
{ text: "附录", link: "/zh/guide/appendix" },
@@ -357,10 +319,7 @@ export default withMermaid({
357319
copyright: `© Amrita 2025-${new Date().getFullYear()}`,
358320
},
359321
socialLinks: [
360-
{
361-
icon: "github",
362-
link: "https://github.com/AmritaBot/AmritaSense",
363-
},
322+
{ icon: "github", link: "https://github.com/AmritaBot/AmritaSense" },
364323
{ icon: "discord", link: "https://discord.gg/byAD3sbjjj" },
365324
],
366325
},
@@ -369,4 +328,4 @@ export default withMermaid({
369328
mermaidPlugin: {
370329
class: "mermaid my-class",
371330
},
372-
});
331+
});

0 commit comments

Comments
 (0)