Repository navigation
Expand file tree
/
Copy pathcourse.json
More file actions
447 lines (447 loc) · 13.6 KB
/
Copy pathcourse.json
File metadata and controls
447 lines (447 loc) · 13.6 KB
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "LabEx course.json schema",
"type": "object",
"required": [
"name",
"description",
"meta",
"cover",
"level",
"alias",
"tags",
"skill_tree",
"priority",
"type",
"fee_type",
"is_orderly",
"hidden",
"show_step_name",
"intro"
],
"properties": {
"id": {
"type": "integer",
"minimum": 1,
"description": "System-assigned LabEx course ID. Omit for a new course until assigned by the backend; preserve the ID of an existing course."
},
"name": {
"type": "string",
"description": "Learner-facing English course title. Use Title Case while preserving technical names and abbreviations."
},
"description": {
"type": "string",
"description": "Short English summary of the course subject, intended audience, and outcomes supported by its Labs."
},
"meta": {
"type": "object",
"required": [
"title",
"description",
"keywords"
],
"properties": {
"title": {
"type": "string",
"description": "English SEO title used for the course page in search results."
},
"description": {
"type": "string",
"description": "English search-result summary describing the course’s actual scope and learning outcomes."
},
"keywords": {
"type": "string",
"description": "Relevant English SEO keywords as one comma-separated string, not an array or the course tags field."
}
},
"description": "English search-engine metadata for the course page, aligned with the actual course content."
},
"cover": {
"type": "string",
"description": "URL of the English course cover image. Follow the established course-cover repository URL convention."
},
"level": {
"type": "string",
"enum": [
"Beginner",
"Intermediate",
"Advanced"
],
"description": "Difficulty of the course as a whole: Beginner, Intermediate, or Advanced. Choose according to its prerequisites and learning tasks."
},
"alias": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"description": "A course route alias containing lowercase letters and digits separated by single hyphens; no leading or trailing hyphen."
},
"description": "Unique course URL aliases in lowercase kebab-case. Preserve existing aliases when adding or changing routes so established links remain valid.",
"minItems": 1,
"uniqueItems": true
},
"tags": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Distinct technology and domain labels supported by substantial course content. Public courses must use public learning path aliases; hidden courses may retain historical technology tags. Do not add labels solely for the runtime environment or assumed prerequisites.",
"minItems": 1,
"uniqueItems": true
},
"skill_tree": {
"type": "string",
"enum": [
"algorithm",
"alibabacloud",
"ansible",
"aws",
"bigdata",
"c",
"cka",
"ckad",
"cks",
"cloudflare",
"comptia",
"cpp",
"css",
"cybersecurity",
"cybersecurity-engineer",
"data-science",
"database",
"devops",
"devops-engineer",
"devsecops",
"django",
"docker",
"flask",
"git",
"go",
"hadoop",
"html",
"hydra",
"java",
"javascript",
"jenkins",
"jquery",
"kali",
"kubernetes",
"lfcs",
"linux",
"linux-engineer",
"matplotlib",
"ml",
"mongodb",
"mysql",
"networking",
"nmap",
"numpy",
"opencv",
"pandas",
"postgresql",
"pygame",
"python",
"react",
"redis",
"rhce-ansible",
"rhce-enterprise-linux",
"rhcsa",
"rhel",
"rust",
"shell",
"sklearn",
"sql",
"sqlite",
"tkinter",
"web-development",
"wireshark"
],
"description": "Primary learning path alias for the course. Public courses must use a public path alias; hidden courses may retain known historical hidden path aliases. Path membership is configured separately through the path’s levels[].courses IDs."
},
"priority": {
"type": "integer",
"description": "Course display priority in listings; larger values appear earlier."
},
"type": {
"type": "string",
"enum": [
"normal",
"project"
],
"description": "Course format: normal for structured teaching, topic-based practice collections, and exams; project for integrated project work. Classify by learning purpose, not directory name, number of Labs, or challenge-only composition."
},
"fee_type": {
"type": "string",
"default": "free",
"enum": [
"free",
"pro"
],
"description": "Course-level access tier: free or pro; default is free. Referenced Labs have their own independent fee_type settings."
},
"lab_coins": {
"type": "integer",
"description": "Nonnegative course price in LabEx lab coins; applicable when fee_type is pro.",
"minimum": 0
},
"is_orderly": {
"type": "boolean",
"default": false,
"description": "Whether learners must complete the course Labs in their configured order; default is false."
},
"hidden": {
"type": "boolean",
"default": false,
"description": "Course visibility: true marks a hidden course and false marks a public course; default is false. This does not change the visibility of referenced Labs."
},
"has_cert": {
"type": "boolean",
"default": false,
"description": "Whether the course offers a LabEx course certificate; default is false."
},
"show_step_name": {
"type": "boolean",
"default": false,
"description": "Whether to display Lab step names for this course; default is false."
},
"show_day_label": {
"type": "boolean",
"default": false,
"description": "Whether to prefix Lab names with day labels on the course page, as in X Days courses; default is false."
},
"intro": {
"type": "string",
"description": "Path to the English Markdown course introduction, relative to the directory containing course.json; normally intro.md."
},
"labs": {
"type": "array",
"items": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"pattern": "^[\\w-]+/[\\w-]+:[\\w/-]+$",
"description": "Lab reference in organization/repository:repository-relative/path format, resolved to the Lab directory containing index.json. Use a repository path, not a numeric Lab ID."
}
}
},
"uniqueItems": true,
"description": "Ordered Lab and Challenge references for a course without named stages. Specify exactly one of labs or stages."
},
"stages": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"labs"
],
"properties": {
"name": {
"type": "string",
"description": "English name of this stage, displayed in the course syllabus."
},
"labs": {
"type": "array",
"items": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"pattern": "^[\\w-]+/[\\w-]+:[\\w/-]+$",
"description": "Lab reference in organization/repository:repository-relative/path format, resolved to the Lab directory containing index.json. Use a repository path, not a numeric Lab ID."
}
}
},
"uniqueItems": true,
"description": "Ordered Lab and Challenge references belonging to this stage."
}
}
},
"description": "Ordered named groups of Lab and Challenge references. Use instead of labs when the course has meaningful stages; specify exactly one membership structure."
},
"i18n": {
"type": "array",
"items": {
"type": "object",
"required": [
"lang",
"name",
"description",
"meta",
"cover",
"intro"
],
"properties": {
"lang": {
"type": "string",
"enum": [
"zh",
"es",
"fr",
"de",
"ja",
"ru",
"ko",
"pt"
],
"description": "Translation language code: zh, es, fr, de, ja, ru, ko, or pt. English content belongs in the top-level course fields."
},
"name": {
"type": "string",
"description": "Course title translated into the language identified by lang; preserve technical product names appropriately."
},
"description": {
"type": "string",
"description": "Localized course summary with the same scope, audience, and outcomes as the English description."
},
"meta": {
"type": "object",
"required": [
"title",
"description",
"keywords"
],
"properties": {
"title": {
"type": "string",
"description": "Localized SEO title for this language’s course page."
},
"description": {
"type": "string",
"description": "Localized search-result summary preserving the English course’s scope and outcomes."
},
"keywords": {
"type": "string",
"description": "Relevant localized SEO keywords as one comma-separated string, not an array."
}
},
"description": "Search-engine metadata translated into the language identified by lang."
},
"cover": {
"type": "string",
"description": "URL of the localized course cover. Artwork may be shared with the English version; follow the established localized cover URL convention."
},
"intro": {
"type": "string",
"description": "Path to this language’s Markdown course introduction, relative to the directory containing course.json; for example, intro-zh.md."
},
"stages": {
"type": "array",
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Translated name of the corresponding English stage at the same array position."
}
}
},
"description": "Optional translated stage names corresponding positionally to top-level stages. Keep the same order and stage count; Lab membership remains in the top-level stages."
}
}
},
"description": "Localized course metadata and introduction references. English remains in the top-level fields; each entry describes a supported translation."
}
},
"oneOf": [
{
"required": [
"labs"
]
},
{
"required": [
"stages"
]
}
],
"$comment": "Path alias lists are maintained from labex-paths/paths/**/*.yaml, including paths/hidden/. Keep this schema and the labex-cli bundled course_schema.json identical. Public courses use public path aliases; hidden courses retain historical path associations and technology tags.",
"definitions": {
"publicPathAlias": {
"type": "string",
"enum": [
"ansible",
"aws",
"bigdata",
"c",
"cka",
"ckad",
"cks",
"cloudflare",
"comptia",
"cpp",
"cybersecurity",
"cybersecurity-engineer",
"data-science",
"database",
"devops",
"devops-engineer",
"devsecops",
"docker",
"git",
"go",
"hydra",
"java",
"jenkins",
"kali",
"kubernetes",
"lfcs",
"linux",
"mongodb",
"mysql",
"networking",
"nmap",
"postgresql",
"python",
"redis",
"rhce-ansible",
"rhce-enterprise-linux",
"rhcsa",
"rhel",
"rust",
"shell",
"sqlite",
"web-development",
"wireshark"
],
"description": "Alias from a learning path configuration with is_show: true; used by public courses for skill_tree and tags."
}
},
"allOf": [
{
"if": {
"properties": {
"hidden": {
"const": false
}
},
"required": [
"hidden"
]
},
"then": {
"properties": {
"skill_tree": {
"$ref": "#/definitions/publicPathAlias"
},
"tags": {
"items": {
"$ref": "#/definitions/publicPathAlias"
}
}
}
}
}
]
}