-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathdocument.code-workspace
138 lines (138 loc) · 3.96 KB
/
document.code-workspace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"folders": [
{
"path": "legacy/examples",
"name": "examples"
},
{
"path": "next",
"name": "document"
},
{
"path": "moonbit-tour",
"name": "tour",
}
],
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "Watch Document 监视文档",
"command": "make",
"type": "shell",
"args": [
"html"
],
"options": {
"env": {
"SPHINXBUILD": "sphinx-autobuild",
"SPHINXOPTS": "-D language='${input:language}'"
},
"cwd": "${workspaceFolder:document}"
},
"group": "build"
},
{
"label": "Build Document 构建文档",
"command": "make",
"type": "shell",
"args": [
"${input:target}"
],
"options": {
"env": {
"SPHINXOPTS": "-D language='${input:language}'"
},
"cwd": "${workspaceFolder:document}"
},
"group": "build"
},
{
"label": "Translate Document 翻译文档",
"command": "make gettext && sphinx-intl update -p _build/gettext -l zh_CN",
"type": "shell",
"options": {
"cwd": "${workspaceFolder:document}"
},
"group": "build"
},
{
"label": "Install Dependencies 安装依赖",
"command": "pnpm",
"type": "shell",
"args": [
"install"
],
"options": {
"cwd": "${workspaceFolder:document}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "Develop Tour 开发导览",
"command": "pnpm",
"type": "shell",
"args": [
"dev"
],
"options": {
"cwd": "${workspaceFolder:tour}"
},
"group": "build",
"dependsOn": [
"Install Dependencies 安装依赖"
]
}
],
"inputs": [
{
"id": "language",
"type": "pickString",
"description": "Language 语言",
"default": "en",
"options": [
{
"value": "en",
"label": "English 英语",
},
{
"value": "zh_CN",
"label": "Chinese 中文"
}
],
},
{
"id": "target",
"type": "pickString",
"default": "html",
"description": "Target 目标",
"options": [
{
"value": "html",
"label": "HTML"
},
{
"value": "latexpdf",
"label": "PDF"
},
{
"value": "markdown",
"label": "Markdown"
}
]
}
]
},
"settings": {
"task.autoDetect": "off",
"editor.rulers": [ 80 ],
},
"extensions": {
"recommendations": [
"ms-python.python",
"executablebookproject.myst-highlight",
"moonbit.moonbit-lang"
]
}
}