@learnpack/learnpack 5.0.280 → 5.0.282

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/lib/commands/serve.js +6 -3
  2. package/lib/models/creator.d.ts +1 -0
  3. package/lib/utils/rigoActions.js +2 -2
  4. package/lib/utils/templates/epub/epub.css +133 -0
  5. package/lib/utils/templates/gitignore.txt +20 -0
  6. package/lib/utils/templates/incremental/.github/workflows/learnpack-audit.yml +29 -0
  7. package/lib/utils/templates/incremental/.learn/assets/.gitkeep +0 -0
  8. package/lib/utils/templates/incremental/.learn/exercises/01-hello-world/README.es.md +24 -0
  9. package/lib/utils/templates/incremental/.learn/exercises/01-hello-world/README.md +24 -0
  10. package/lib/utils/templates/incremental/.vscode/schema.json +121 -0
  11. package/lib/utils/templates/incremental/.vscode/settings.json +14 -0
  12. package/lib/utils/templates/incremental/README.ejs +5 -0
  13. package/lib/utils/templates/incremental/README.es.ejs +5 -0
  14. package/lib/utils/templates/isolated/.github/workflows/learnpack-audit.yml +29 -0
  15. package/lib/utils/templates/isolated/.learn/assets/.gitkeep +0 -0
  16. package/lib/utils/templates/isolated/.vscode/schema.json +122 -0
  17. package/lib/utils/templates/isolated/.vscode/settings.json +14 -0
  18. package/lib/utils/templates/isolated/README.ejs +5 -0
  19. package/lib/utils/templates/isolated/README.es.ejs +5 -0
  20. package/lib/utils/templates/isolated/exercises/01-hello-world/README.es.md +26 -0
  21. package/lib/utils/templates/isolated/exercises/01-hello-world/README.md +26 -0
  22. package/lib/utils/templates/no-grading/README.ejs +5 -0
  23. package/lib/utils/templates/no-grading/README.es.ejs +5 -0
  24. package/lib/utils/templates/scorm/adlcp_rootv1p2.xsd +110 -0
  25. package/lib/utils/templates/scorm/config/api.js +175 -0
  26. package/lib/utils/templates/scorm/config/index.html +210 -0
  27. package/lib/utils/templates/scorm/ims_xml.xsd +1 -0
  28. package/lib/utils/templates/scorm/imscp_rootv1p1p2.xsd +345 -0
  29. package/lib/utils/templates/scorm/imsmanifest.xml +38 -0
  30. package/lib/utils/templates/scorm/imsmd_rootv1p2p1.xsd +573 -0
  31. package/package.json +4 -3
  32. package/src/commands/serve.ts +7 -3
  33. package/src/models/creator.ts +48 -47
  34. package/src/ui/_app/app.css +1 -1
  35. package/src/ui/_app/app.js +262 -262
  36. package/src/ui/app.tar.gz +0 -0
  37. package/src/utils/rigoActions.ts +503 -500
@@ -139,7 +139,7 @@ async function startExerciseGeneration(rigoToken, steps, packageContext, exercis
139
139
  console.log("Starting generation of", exSlug);
140
140
  const webhookUrl = `${process.env.HOST}/webhooks/${courseSlug}/exercise-processor/${exercise.id}/${rigoToken}`;
141
141
  console.log("WEBHOOK URL", webhookUrl);
142
- const res = await (0, rigoActions_1.readmeCreator)(rigoToken, {
142
+ const res = await (0, rigoActions_1.readmeCreator)(rigoToken.trim(), {
143
143
  title: `${exercise.id} - ${exercise.title}`,
144
144
  output_lang: packageContext.language || "en",
145
145
  list_of_exercises: JSON.stringify(steps.map(step => step.id + "-" + step.title)),
@@ -406,7 +406,7 @@ class ServeCommand extends SessionCommand_1.default {
406
406
  });
407
407
  app.post("/actions/continue-generating/:courseSlug/:position", async (req, res) => {
408
408
  const { courseSlug, position } = req.params;
409
- const { feedback } = req.body;
409
+ const { feedback, mode } = req.body;
410
410
  const rigoToken = req.header("x-rigo-token");
411
411
  if (!rigoToken) {
412
412
  return res.status(400).json({
@@ -454,6 +454,7 @@ class ServeCommand extends SessionCommand_1.default {
454
454
  else {
455
455
  syllabusJson.feedback = feedback;
456
456
  }
457
+ syllabusJson.generationMode = mode;
457
458
  await uploadFileToBucket(bucket, JSON.stringify(syllabusJson), `courses/${courseSlug}/.learn/initialSyllabus.json`);
458
459
  res.json({ status: "SUCCESS" });
459
460
  });
@@ -528,7 +529,9 @@ class ServeCommand extends SessionCommand_1.default {
528
529
  }
529
530
  let nextCompletionId = null;
530
531
  if (nextExercise &&
531
- (exerciseIndex === 0 || !(exerciseIndex % 3 === 0))) {
532
+ (exerciseIndex === 0 ||
533
+ !(exerciseIndex % 3 === 0) ||
534
+ syllabusJson.generationMode === "continue-with-all")) {
532
535
  let feedback = "";
533
536
  if (syllabusJson.feedback) {
534
537
  feedback = `\n\nThe user added the following feedback with relation to the previous generations: ${syllabusJson.feedback}`;
@@ -39,4 +39,5 @@ export type Syllabus = {
39
39
  lessons: Lesson[];
40
40
  courseInfo: FormState;
41
41
  feedback?: string;
42
+ generationMode?: "next-three" | "continue-with-all";
42
43
  };
@@ -21,7 +21,7 @@ const createReadme = async (token, inputs, purpose, webhookUrl) => {
21
21
  }, {
22
22
  headers: {
23
23
  "Content-Type": "application/json",
24
- Authorization: "Token " + token,
24
+ Authorization: "Token " + token.trim(),
25
25
  },
26
26
  });
27
27
  return response.data;
@@ -186,7 +186,7 @@ const createStructuredPreviewReadme = async (token, inputs, webhookUrl) => {
186
186
  }, {
187
187
  headers: {
188
188
  "Content-Type": "application/json",
189
- Authorization: "Token " + token,
189
+ Authorization: "Token " + token.trim(),
190
190
  },
191
191
  });
192
192
  return response.data;
@@ -0,0 +1,133 @@
1
+ /* Basic EPUB styling */
2
+ body {
3
+ font-family: "Georgia", serif;
4
+ line-height: 1.6;
5
+ margin: 2em;
6
+ color: #333;
7
+ }
8
+
9
+ h1,
10
+ h2,
11
+ h3,
12
+ h4,
13
+ h5,
14
+ h6 {
15
+ color: #2c3e50;
16
+ margin-top: 1.5em;
17
+ margin-bottom: 0.5em;
18
+ }
19
+
20
+ h1 {
21
+ font-size: 2em;
22
+ border-bottom: 2px solid #3498db;
23
+ padding-bottom: 0.3em;
24
+ }
25
+
26
+ h2 {
27
+ font-size: 1.5em;
28
+ border-bottom: 1px solid #bdc3c7;
29
+ padding-bottom: 0.2em;
30
+ }
31
+
32
+ p {
33
+ margin-bottom: 1em;
34
+ text-align: justify;
35
+ }
36
+
37
+ code {
38
+ background-color: #f8f9fa;
39
+ padding: 0.2em 0.4em;
40
+ border-radius: 3px;
41
+ font-family: "Courier New", monospace;
42
+ font-size: 0.9em;
43
+ }
44
+
45
+ pre {
46
+ background-color: #f8f9fa;
47
+ padding: 1em;
48
+ border-radius: 5px;
49
+ overflow-x: auto;
50
+ border-left: 4px solid #3498db;
51
+ }
52
+
53
+ pre code {
54
+ background-color: transparent;
55
+ padding: 0;
56
+ }
57
+
58
+ blockquote {
59
+ border-left: 4px solid #bdc3c7;
60
+ margin: 1em 0;
61
+ padding-left: 1em;
62
+ font-style: italic;
63
+ color: #7f8c8d;
64
+ }
65
+
66
+ ul,
67
+ ol {
68
+ margin-bottom: 1em;
69
+ padding-left: 2em;
70
+ }
71
+
72
+ li {
73
+ margin-bottom: 0.5em;
74
+ }
75
+
76
+ a {
77
+ color: #3498db;
78
+ text-decoration: none;
79
+ }
80
+
81
+ a:hover {
82
+ text-decoration: underline;
83
+ }
84
+
85
+ img {
86
+ max-width: 100%;
87
+ height: auto;
88
+ display: block;
89
+ margin: 1em auto;
90
+ }
91
+
92
+ table {
93
+ border-collapse: collapse;
94
+ width: 100%;
95
+ margin: 1em 0;
96
+ }
97
+
98
+ th,
99
+ td {
100
+ border: 1px solid #ddd;
101
+ padding: 8px;
102
+ text-align: left;
103
+ }
104
+
105
+ th {
106
+ background-color: #f2f2f2;
107
+ font-weight: bold;
108
+ }
109
+
110
+ #toc {
111
+ background-color: #f8f9fa;
112
+ padding: 1em;
113
+ border-radius: 5px;
114
+ margin-bottom: 2em;
115
+ }
116
+
117
+ #toc h2 {
118
+ border-bottom: none;
119
+ margin-top: 0;
120
+ }
121
+
122
+ #toc ol {
123
+ padding-left: 1em;
124
+ }
125
+
126
+ #toc li {
127
+ margin-bottom: 0.3em;
128
+ }
129
+
130
+ #toc a {
131
+ color: #2c3e50;
132
+ font-weight: 500;
133
+ }
@@ -0,0 +1,20 @@
1
+ # configuration and readme
2
+ !.gitignore
3
+ !.gitpod.yml
4
+ !.gitpod.Dockerfile
5
+ !learn.json
6
+ !README.md
7
+
8
+ # exercises
9
+ !.learn/
10
+ !.learn/*
11
+ .learn/_app
12
+ .learn/.session
13
+ .learn/dist
14
+ .learn/app.tar.gz
15
+ .learn/config.json
16
+
17
+ # python compiled files
18
+ *.pyc
19
+ __pycache__/
20
+ .pytest_cache/
@@ -0,0 +1,29 @@
1
+ # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
4
+ name: Learnpack audit
5
+
6
+ on:
7
+ push:
8
+ branches: [ main, master ]
9
+ pull_request:
10
+ branches: [ main, master ]
11
+
12
+ jobs:
13
+ build:
14
+
15
+ runs-on: ubuntu-latest
16
+
17
+ strategy:
18
+ matrix:
19
+ node-version: [20.x]
20
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21
+
22
+ steps:
23
+ - uses: actions/checkout@v2
24
+ - name: Use Node.js ${{ matrix.node-version }}
25
+ uses: actions/setup-node@v2
26
+ with:
27
+ node-version: ${{ matrix.node-version }}
28
+ - run: npm install @learnpack/learnpack@latest -g
29
+ - run: learnpack audit --strict
@@ -0,0 +1,24 @@
1
+ # `01` Hello World
2
+
3
+ Puedes tener un archivo README el cual será como una página de un libro, sin archivos de código.
4
+
5
+ También puedes agregar un archivo `README.[lenguaje].md` para traducciones, por ejemplo `README.es.md` para español.
6
+
7
+ ## Inserta videos
8
+
9
+ Si quieres incluir algún video introductorio para cada ejercicio, agrega la propiedad `intro` en el inicio del README.md para ese ejercicio en particular:
10
+
11
+ ```markdown
12
+ ---
13
+ intro: "https://www.youtube.com/watch?v=YkgkThdzX-8"
14
+ ---
15
+ ```
16
+
17
+ Tambien puedes agregar un video explicando la solución para cada ejercicio agregando la propiedad `tutorial` al inicio del markdown del README.md correspondiente:
18
+
19
+ ```markdown
20
+ ---
21
+ intro: "https://www.youtube.com/watch?v=YkgkThdzX-8"
22
+ tutorial: "https://www.youtube.com/watch?v=YkgkThdzX-8"
23
+ ---
24
+ ```
@@ -0,0 +1,24 @@
1
+ # `01` Hello World
2
+
3
+ You can have just a README file and it will be like a page in a book, no code files.
4
+
5
+ You can also add a `README.[lang].md` file for translations, for example: `README.es.md` for spanish.
6
+
7
+ ## Video compatibility
8
+
9
+ If you want to include some video introduction for each exercise, add a `intro` property in the markdown frontmatter of the README.md for that particular exercise:
10
+
11
+ ```markdown
12
+ ---
13
+ intro: "https://www.youtube.com/watch?v=YkgkThdzX-8"
14
+ ---
15
+ ```
16
+
17
+ You can also add a video solution for each exercise by adding a `tutorial` property on the markdown frontmatter of it's README.md:
18
+
19
+ ```markdown
20
+ ---
21
+ intro: "https://www.youtube.com/watch?v=YkgkThdzX-8"
22
+ tutorial: "https://www.youtube.com/watch?v=YkgkThdzX-8"
23
+ ---
24
+ ```
@@ -0,0 +1,121 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "language": {
6
+ "type": "string",
7
+ "enum": ["react", "auto", "html", "python", "node", "dom"]
8
+ },
9
+ "slug": {
10
+ "type": "string"
11
+ },
12
+ "title": {
13
+ "type": "object",
14
+ "properties": {
15
+ "en": {
16
+ "type": "string"
17
+ },
18
+ "es": {
19
+ "type": "string"
20
+ }
21
+ },
22
+ "required": ["en"]
23
+ },
24
+ "repository": {
25
+ "type": "string",
26
+ "format": "uri"
27
+ },
28
+ "preview": {
29
+ "type": "string",
30
+ "format": "uri"
31
+ },
32
+ "description": {
33
+ "type": "object",
34
+ "properties": {
35
+ "en": {
36
+ "type": "string"
37
+ },
38
+ "es": {
39
+ "type": "string"
40
+ }
41
+ },
42
+ "required": ["en"]
43
+ },
44
+ "duration": {
45
+ "type": "integer"
46
+ },
47
+ "projectType": {
48
+ "type": "string",
49
+ "enum": ["tutorial", "project"]
50
+ },
51
+ "difficulty": {
52
+ "type": "string",
53
+ "enum": ["easy","beginner", "medium", "hard"]
54
+ },
55
+ "videoSolutions": {
56
+ "type": "boolean"
57
+ },
58
+ "bugsLink": {
59
+ "type": "string",
60
+ "format": "uri"
61
+ },
62
+ "grading": {
63
+ "type": ["string", "null"],
64
+ "enum": ["isolated", "incremental", null]
65
+ },
66
+ "editor": {
67
+ "type": "object",
68
+ "properties": {
69
+ "version": {
70
+ "type": "string"
71
+ },
72
+ "mode": {
73
+ "type": "string",
74
+ "enum": ["extension", "preview"]
75
+ },
76
+ "agent": {
77
+ "type": "string",
78
+ "enum": ["vscode", "os"]
79
+ }
80
+ },
81
+ "required": ["version"]
82
+ },
83
+ "telemetry": {
84
+ "type": "object",
85
+ "properties": {
86
+ "batch": {
87
+ "type": "string",
88
+ "format": "uri"
89
+ }
90
+ },
91
+ "required": ["batch"]
92
+ },
93
+ "video": {
94
+ "type": "object",
95
+ "properties": {
96
+ "intro": {
97
+ "type": "object",
98
+ "properties": {
99
+ "en": {
100
+ "type": "string",
101
+ "format": "uri"
102
+ },
103
+ "es": {
104
+ "type": "string",
105
+ "format": "uri"
106
+ }
107
+ }
108
+ }
109
+ },
110
+ "required": ["intro"]
111
+ }
112
+ },
113
+ "required": [
114
+ "slug",
115
+ "title",
116
+ "description",
117
+ "duration",
118
+ "difficulty",
119
+ "grading"
120
+ ]
121
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "files.autoSave": "afterDelay",
3
+ "files.autoSaveDelay": 700,
4
+ "editor.minimap.enabled": false,
5
+ "workbench.editorAssociations": {
6
+ "*.md": "vscode.markdown.preview.editor"
7
+ },
8
+ "json.schemas": [
9
+ {
10
+ "fileMatch": ["learn.json"],
11
+ "url": "./.vscode/schema.json"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,5 @@
1
+ # Welcome to <%= it.title %>
2
+
3
+ You have initialized the exercises with grading=`incremental`; meaning that your students will complete one single tutorial with clear and autograded steps from beginning to end.
4
+
5
+ Type `$ learnpack start` in your terminal to start the exercises.
@@ -0,0 +1,5 @@
1
+ # Bienvenido a <%= it.title %>
2
+
3
+ Has inicializado los ejercicios con grading=`incremental`; esto signigica que tus estudiantes completarán un solo tutorial con pasos claros e incrementales, desde el comienzo hasta el final.
4
+
5
+ Ejecuta `$ learnpack start` en la terminal para comenzar con los ejercicios.
@@ -0,0 +1,29 @@
1
+ # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
4
+ name: Learnpack audit
5
+
6
+ on:
7
+ push:
8
+ branches: [ main, master ]
9
+ pull_request:
10
+ branches: [ main, master ]
11
+
12
+ jobs:
13
+ build:
14
+
15
+ runs-on: ubuntu-latest
16
+
17
+ strategy:
18
+ matrix:
19
+ node-version: [20.x]
20
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21
+
22
+ steps:
23
+ - uses: actions/checkout@v2
24
+ - name: Use Node.js ${{ matrix.node-version }}
25
+ uses: actions/setup-node@v2
26
+ with:
27
+ node-version: ${{ matrix.node-version }}
28
+ - run: npm install @learnpack/learnpack@latest -g
29
+ - run: learnpack audit --strict
@@ -0,0 +1,122 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "language": {
6
+ "type": "string",
7
+ "enum": ["react", "auto", "html", "python", "node", "dom"]
8
+ },
9
+ "slug": {
10
+ "type": "string"
11
+ },
12
+ "title": {
13
+ "type": "object",
14
+ "properties": {
15
+ "en": {
16
+ "type": "string"
17
+ },
18
+ "es": {
19
+ "type": "string"
20
+ }
21
+ },
22
+ "required": ["en"]
23
+ },
24
+ "repository": {
25
+ "type": "string",
26
+ "format": "uri"
27
+ },
28
+ "preview": {
29
+ "type": "string",
30
+ "format": "uri"
31
+ },
32
+ "description": {
33
+ "type": "object",
34
+ "properties": {
35
+ "en": {
36
+ "type": "string"
37
+ },
38
+ "es": {
39
+ "type": "string"
40
+ }
41
+ },
42
+ "required": ["en"]
43
+ },
44
+ "duration": {
45
+ "type": "integer"
46
+ },
47
+ "projectType": {
48
+ "type": "string",
49
+ "enum": ["tutorial", "project"]
50
+ },
51
+ "difficulty": {
52
+ "type": "string",
53
+ "enum": ["easy","beginner", "medium", "hard"]
54
+ },
55
+ "videoSolutions": {
56
+ "type": "boolean"
57
+ },
58
+ "bugsLink": {
59
+ "type": "string",
60
+ "format": "uri"
61
+ },
62
+ "grading": {
63
+ "type": ["string", "null"],
64
+ "enum": ["isolated", "incremental", null]
65
+ },
66
+ "editor": {
67
+ "type": "object",
68
+ "properties": {
69
+ "version": {
70
+ "type": "string"
71
+ },
72
+ "mode": {
73
+ "type": "string",
74
+ "enum": ["extension", "preview"]
75
+ },
76
+ "agent": {
77
+ "type": "string",
78
+ "enum": ["vscode", "os"]
79
+ }
80
+ },
81
+ "required": ["version"]
82
+ },
83
+ "telemetry": {
84
+ "type": "object",
85
+ "properties": {
86
+ "batch": {
87
+ "type": "string",
88
+ "format": "uri"
89
+ }
90
+ },
91
+ "required": ["batch"]
92
+ },
93
+ "video": {
94
+ "type": "object",
95
+ "properties": {
96
+ "intro": {
97
+ "type": "object",
98
+ "properties": {
99
+ "en": {
100
+ "type": "string",
101
+ "format": "uri"
102
+ },
103
+ "es": {
104
+ "type": "string",
105
+ "format": "uri"
106
+ }
107
+ }
108
+ }
109
+ },
110
+ "required": ["intro"]
111
+ }
112
+ },
113
+ "required": [
114
+ "slug",
115
+ "title",
116
+ "description",
117
+ "duration",
118
+ "difficulty",
119
+ "grading"
120
+ ]
121
+ }
122
+
@@ -0,0 +1,14 @@
1
+ {
2
+ "files.autoSave": "afterDelay",
3
+ "files.autoSaveDelay": 700,
4
+ "editor.minimap.enabled": false,
5
+ "workbench.editorAssociations": {
6
+ "*.md": "vscode.markdown.preview.editor"
7
+ },
8
+ "json.schemas": [
9
+ {
10
+ "fileMatch": ["learn.json"],
11
+ "url": "./.vscode/schema.json"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,5 @@
1
+ # Welcome to <%= it.title %>
2
+
3
+ You have initialized the exercises with grading=`incremental`; meaning that your students will complete one single tutorial with clear and autograded steps from beginning to end.
4
+
5
+ Type `$ learnpack start` in your terminal to start the exercises.
@@ -0,0 +1,5 @@
1
+ # Bienvenido a <%= it.title %>
2
+
3
+ Has inicializado los ejercicios con grading=`incremental`; esto signigica que tus estudiantes completarán un solo tutorial con pasos claros e incrementales, desde el comienzo hasta el final.
4
+
5
+ Ejecuta `$ learnpack start` en la terminal para comenzar con los ejercicios.
@@ -0,0 +1,26 @@
1
+ # `01` Primer Ejercicio
2
+
3
+ Hemos creado este primer ejercicio como ejemplo. Lo puedes ubicar en la carpeta `./01-hello-world`.
4
+
5
+ 1. Cada ejercicio debe estar ubicado en carpetas separadas y debe tener un archivo README.md con las instrucciones del ejercicio escrito en markdown.
6
+ 2. Puedes tener un archivo README el cual será como una página de un libro, sin archivos de código.
7
+ 3. También puedes agregar un archivo `README.[lenguaje].md` para traducciones, por ejemplo `README.es.md` para español.
8
+
9
+ ## Inserta videos
10
+
11
+ Si quieres incluir algún video introductorio para cada ejercicio, agrega la propiedad `intro` en el inicio del README.md para ese ejercicio en particular:
12
+
13
+ ```markdown
14
+ ---
15
+ intro: "https://www.youtube.com/watch?v=YkgkThdzX-8"
16
+ ---
17
+ ```
18
+
19
+ Tambien puedes agregar un video explicando la solución para cada ejercicio agregando la propiedad `tutorial` al inicio del markdown del README.md correspondiente:
20
+
21
+ ```markdown
22
+ ---
23
+ intro: "https://www.youtube.com/watch?v=YkgkThdzX-8"
24
+ tutorial: "https://www.youtube.com/watch?v=YkgkThdzX-8"
25
+ ---
26
+ ```
@@ -0,0 +1,26 @@
1
+ # `01` First Exercise
2
+
3
+ We created this first exercise as an example, you can find it located in the folder `./01-hello-world`.
4
+
5
+ 1. Every exercise must be located on a separate folder and it must have a README.md file inside with the exercise instructions written in markdown.
6
+ 2. You can have just a README file and it will be like a page in a book, no code files.
7
+ 3. You can also add a `README.[lang].md` file for translations, for example: `README.es.md` for spanish.
8
+
9
+ ## Video compatibility
10
+
11
+ If you want to include some video introduction for each exercise, add a `intro` property in the markdown frontmatter of the README.md for that particular exercise:
12
+
13
+ ```markdown
14
+ ---
15
+ intro: "https://www.youtube.com/watch?v=YkgkThdzX-8"
16
+ ---
17
+ ```
18
+
19
+ You can also add a video solution for each exercise by adding a `tutorial` property on the markdown frontmatter of it's README.md:
20
+
21
+ ```markdown
22
+ ---
23
+ intro: "https://www.youtube.com/watch?v=YkgkThdzX-8"
24
+ tutorial: "https://www.youtube.com/watch?v=YkgkThdzX-8"
25
+ ---
26
+ ```