Skip to content

Commit 4aa398b

Browse files
committed
翻译
1 parent 794f042 commit 4aa398b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+908
-422
lines changed

docs/.vitepress/sidebar.ts

Lines changed: 101 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const sidebar: DefaultTheme.Sidebar = {
3131
link: "/zh/quickstart/02base/03logic-statements",
3232
},
3333
{
34-
text: "顶层语句",
34+
text: "顶层语句*",
3535
link: "/zh/quickstart/02base/04top-statements",
3636
},
3737
{
@@ -57,7 +57,7 @@ export const sidebar: DefaultTheme.Sidebar = {
5757
link: "/zh/quickstart/04function/01define-and-call",
5858
},
5959
{
60-
text: "static关键字",
60+
text: "static关键字*",
6161
link: "/zh/quickstart/04function/02static-params",
6262
},
6363
{
@@ -74,11 +74,11 @@ export const sidebar: DefaultTheme.Sidebar = {
7474
text: "类",
7575
"items": [
7676
{
77-
text: "类的定义和实例化",
77+
text: "实体模板",
7878
link: "/zh/quickstart/05class/01define-and-instantiate",
7979
},
8080
{
81-
text: "类的成员",
81+
text: "实体模板的成员",
8282
link: "/zh/quickstart/05class/02member",
8383
},
8484
{
@@ -88,6 +88,10 @@ export const sidebar: DefaultTheme.Sidebar = {
8888
{
8989
text: "继承和抽象",
9090
link: "/zh/quickstart/05class/04inheritance-abstract",
91+
},
92+
{
93+
text: "杂项",
94+
link: "/zh/quickstart/05class/05miscellaneous",
9195
}
9296
],
9397
},
@@ -148,6 +152,10 @@ export const sidebar: DefaultTheme.Sidebar = {
148152
{
149153
text: "数据模板的嵌套",
150154
link: "/zh/quickstart/09template/02template-nest",
155+
},
156+
{
157+
text: "特殊类型",
158+
link: "/zh/quickstart/09template/03mort-type",
151159
}
152160
],
153161
},
@@ -180,7 +188,7 @@ export const sidebar: DefaultTheme.Sidebar = {
180188
link: "/zh/quickstart/11mni/03javavar",
181189
},
182190
{
183-
text: "注解",
191+
text: "注解*",
184192
link: "/zh/quickstart/11mni/04annotation",
185193
},
186194
{
@@ -200,6 +208,19 @@ export const sidebar: DefaultTheme.Sidebar = {
200208
}
201209
],
202210
"/en/quickstart/": [
211+
{
212+
text: "Project Configuration",
213+
"items": [
214+
{
215+
text: "Create a Project",
216+
link: "/en/quickstart/01project/01create-project",
217+
},
218+
{
219+
text: "Configuration File",
220+
link: "/en/quickstart/01project/02config-file",
221+
}
222+
],
223+
},
203224
{
204225
text: "Basic Syntax",
205226
"items": [
@@ -212,20 +233,24 @@ export const sidebar: DefaultTheme.Sidebar = {
212233
link: "/en/quickstart/02base/02comments",
213234
},
214235
{
215-
text: "Logic statements ",
236+
text: "Logic statements",
216237
link: "/en/quickstart/02base/03logic-statements",
217238
},
218239
{
219-
text: "Top statement ",
240+
text: "Top statement*",
220241
link: "/en/quickstart/02base/04top-statements",
242+
},
243+
{
244+
text: "Native Commands",
245+
link: "/en/quickstart/02base/05original-command",
221246
}
222247
],
223248
},
224249
{
225250
text: "Namespace",
226251
"items": [
227252
{
228-
text: "Namespace ",
253+
text: "Namespace",
229254
link: "/en/quickstart/03namespace/01namespace",
230255
}
231256
],
@@ -238,37 +263,45 @@ export const sidebar: DefaultTheme.Sidebar = {
238263
link: "/en/quickstart/04function/01define-and-call",
239264
},
240265
{
241-
text: "static keyword ",
266+
text: "static keyword*",
242267
link: "/en/quickstart/04function/02static-params",
243268
},
244269
{
245-
text: "Inline function ",
270+
text: "Inline function",
246271
link: "/en/quickstart/04function/03inline-function",
272+
},
273+
{
274+
text: "Compile-time Function",
275+
link: "/en/quickstart/04function/04compiletime-function",
247276
}
248277
],
249278
},
250279
{
251280
text: "Class",
252281
"items": [
253282
{
254-
text: "The instantiate and define of class",
283+
text: "Entity Template",
255284
link: "/en/quickstart/05class/01define-and-instantiate",
256285
},
257286
{
258-
text: "Member of class ",
287+
text: "Member of entity template",
259288
link: "/en/quickstart/05class/02member",
260289
},
290+
{
291+
text: "Singleton",
292+
link: "/en/quickstart/05class/03object",
293+
},
261294
{
262295
text: "Inheritance and abstraction",
263-
link: "/en/quickstart/05class/03inheritance-abstract",
296+
link: "/en/quickstart/05class/04inheritance-abstract",
264297
}
265298
],
266299
},
267300
{
268301
text: "Interface",
269302
"items": [
270303
{
271-
text: "Define and implement ",
304+
text: "Define and implement",
272305
link: "/en/quickstart/06interface/01define-and-implement",
273306
}
274307
],
@@ -277,15 +310,15 @@ export const sidebar: DefaultTheme.Sidebar = {
277310
text: "Generic",
278311
"items": [
279312
{
280-
text: "编译确定量",
313+
text: "Compile-time Constants",
281314
link: "/en/quickstart/07generic/01concrete_var",
282315
},
283316
{
284-
text: "泛型函数",
317+
text: "Generic Functions",
285318
link: "/en/quickstart/07generic/02generic_function",
286319
},
287320
{
288-
text: "泛型类",
321+
text: "Generic Classes",
289322
link: "/en/quickstart/07generic/03generic_class",
290323
}
291324
],
@@ -298,11 +331,11 @@ export const sidebar: DefaultTheme.Sidebar = {
298331
link: "/en/quickstart/08nbt/01nbt",
299332
},
300333
{
301-
text: "列表",
334+
text: "Lists",
302335
link: "/en/quickstart/08nbt/02list",
303336
},
304337
{
305-
text: "字典",
338+
text: "Dictionary",
306339
link: "/en/quickstart/08nbt/03dict",
307340
},
308341
{
@@ -311,20 +344,67 @@ export const sidebar: DefaultTheme.Sidebar = {
311344
}
312345
],
313346
},
347+
{
348+
text: "Data Template",
349+
"items": [
350+
{
351+
text: "Data Template",
352+
link: "/en/quickstart/09template/01define-and-instantiate",
353+
},
354+
{
355+
text: "Nested Data Templates",
356+
link: "/en/quickstart/09template/02template-nest",
357+
},
358+
{
359+
text: "Special Types in Data Templates",
360+
link: "/en/quickstart/09template/03mort-type",
361+
}
362+
],
363+
},
364+
{
365+
text: "Library",
366+
"items": [
367+
{
368+
text: "Import and Use",
369+
link: "/en/quickstart/10library/01import-and-use",
370+
},
371+
{
372+
text: "Export Library",
373+
link: "/en/quickstart/10library/02export-library",
374+
}
375+
],
376+
},
314377
{
315378
text: "MNI Framework",
316379
"items": [
317380
{
318-
text: "MNI框架",
381+
text: "MNI Framework",
319382
link: "/en/quickstart/11mni/01mni-framework",
320383
},
321384
{
322-
text: "MNI函数",
385+
text: "MNI Functions",
323386
link: "/en/quickstart/11mni/02mni-framework-implementation",
324387
},
325388
{
326389
text: "JavaVar",
327390
link: "/en/quickstart/11mni/03javavar",
391+
},
392+
{
393+
text: "Annotations*",
394+
link: "/en/quickstart/11mni/04annotation",
395+
},
396+
{
397+
text: "JVM Access Operator",
398+
link: "/en/quickstart/11mni/05access",
399+
}
400+
],
401+
},
402+
{
403+
text: "Gradle Build",
404+
"items": [
405+
{
406+
text: "Gradle Configuration",
407+
link: "/en/quickstart/12gradle/01gradle-configuration",
328408
}
329409
],
330410
}

docs/en/overview.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ nav:
66
order: -1
77
---
88

9+
:::warning
10+
Some parts of the documentation may be outdated or incomplete.
11+
:::
12+
913
# MCFPP Overview
1014

1115
Before the start: statements of mcfpp is end up with semicolon.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
---
2+
lastUpdated: true
3+
---
4+
5+
# Create a Project
6+
17
TODO
Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,29 @@
1-
TODO
1+
---
2+
lastUpdated: true
3+
---
4+
5+
# Configuration File
6+
7+
The project configuration file for MCFPP is a JSON file, typically stored in the root directory of the project. The JSON format is as follows:
8+
9+
```json
10+
{
11+
// List of project file paths. Use wildcard symbols to select all files.
12+
"files": [
13+
"src/main/mcfpp/**"
14+
],
15+
// The source code directory of the project. The namespace of the files is determined by their relative path to the source code directory.
16+
"sourcePath": "src/main/mcfpp",
17+
// Description of the datapack. This is a raw JSON text.
18+
"description": "",
19+
// The default namespace for the datapack, which will determine the namespace for datas, for instance storage in the package.
20+
"namespace": "test",
21+
// The output path for the datapack. The datapack and library files will be output to this directory.
22+
"targetPath": "src/main/resources/lib",
23+
// Whether to *not* generate a datapack. Default is false.
24+
"noDatapack": false,
25+
// Whether to *ignore* the standard library. Default is false. If set to true, the MCFPP standard library will not be referenced.
26+
"ignoreStdLib": false,
27+
// Whether it is a library. Default is false. Libraries do not need to have an entry function.
28+
"isLib": false
29+
}

0 commit comments

Comments
 (0)