You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+89-5Lines changed: 89 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,13 @@ Command line interface for [CodeRoad](https://marketplace.visualstudio.com/items
9
9
10
10
##Install
11
11
12
-
Use CodeRoad CLI tosetup and build a tutorial configuration file.
12
+
Use CodeRoad CLI toset up and build a tutorial configuration file.
13
13
14
14
```shell
15
15
npm install -g coderoad-cli
16
16
```
17
17
18
-
##Craete
18
+
##Create
19
19
20
20
```shell
21
21
$ coderoad create
@@ -31,13 +31,97 @@ $ coderoad build [options]
31
31
32
32
options:
33
33
34
-
-g, --git Tutorial's remote git address. Either --gitot --dir should be provided.
35
-
-d, --dir Tutorial's local directory. Either --gitot --dir should be provided.
34
+
-g, --git Tutorial's remote git address. Either --gitor --dir should be provided.
35
+
-d, --dir Tutorial's local directory. Either --gitor --dir should be provided.
36
36
-c, --code Branch that contains the code.
37
37
-s, --setup Branch that contains the TUTORIAL.md and coderoad.yaml files.
38
38
-o, --output (Optional) Save the configuration in the output file.
39
39
Log into the console if not set
40
40
-h, --help (Optional) Show the help message
41
41
```
42
42
43
-
Build the configuration file to be used by the extension to run the tutorial. The configuration file is created by matching the`level` and`step` ids between the`TUTORIAL.md` and`coderoad.yaml` files against git commit messages with the same ids.
43
+
Build the configuration file to be used by the extension to run the tutorial. The configuration file is created by matching the`level` and`step` ids between the`TUTORIAL.md` and`coderoad.yaml` files against git commit messages with the same ids. For example:
44
+
45
+
46
+
**TUTORIAL.md**
47
+
```markdown
48
+
...
49
+
## L10 This is a level with id = 10
50
+
51
+
This level has two steps...
52
+
53
+
54
+
### L10S1 First step
55
+
56
+
The first step with id L10S1. The Step id should start with the level id.
Note that the step`L10S2` has two commits, one with the suffix `Q` and another one with `A`. The suffixes mean `Question` and `Answer`, respectively.
122
+
123
+
Steps defined as questions are **required** as they are meant to set the task to be executed by the student. The answer is optional and should be used when a commit must be loaded to verify the student's solution. If there is no need to load commits for `A` steps, the `commits` key should be removed from the `coderoad.yaml` file for that step.
124
+
125
+
**IMPORTANT**
126
+
127
+
Only the most recent commit is evaluated for each level/step id.