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: doc/useyaml.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,21 @@ specificfeedbackformat: html
52
52
53
53
See [test question](../tests/fixtures/fullquestion.yml) for sample YAML layout.
54
54
55
+
Additionally you can set your default file so that the answer tests for your questions are stored
56
+
in a summary format:
57
+
```
58
+
ATanswertest(sans,tans,testoptions)
59
+
```
60
+
Default file example:
61
+
```
62
+
answertest: ATAlgEquiv(ans1,ta1)
63
+
# sans, tans, testoptions will not be used but need to be here for diff compatibility
64
+
# with questions which have them rather than the summary answertest.
65
+
sans:
66
+
tans:
67
+
testoptions:
68
+
```
69
+
55
70
When importing to Moodle, Gitsync adds all the missing fields to the YAML representation from the defaults file, converts it to XML, creates a temporary XML file in the repo directory and then uploads this to Moodle. The defaults file is selected in the same way as for export so you can use different defaults if required.
56
71
57
72
Obviously, using different defaults for import and export should be handled with care to avoid information loss! It makes most sense for altering site-specific settings that will be the same for every question e.g. decimal separator. Normally Gitsync skips importing questions that have not changed in the repo since the last import so if you want to update them using different defaults you will need to use `-z` to force import of questions that have not changed themselves.
0 commit comments