Propagate 'store' where applicable, improve docs

This commit is contained in:
Pieter Vander Vennet 2022-06-19 13:55:33 +02:00
parent 4a318c1073
commit 9bfbdf012a
6 changed files with 21 additions and 15 deletions

View file

@ -1,9 +1,14 @@
/**
* Rewrites and multiplies the given renderings of type T.
*
* This can be used for introducing many similar questions automatically,
* which also makes translations easier.
*
* (Note that the key does _not_ need to be wrapped in {}.
* However, we recommend to use them if the key is used in a translation, as missing keys will be picked up and warned for by the translation scripts)
*
* For example:
*
*
* ```
* {
* rewrite: {
@ -13,9 +18,9 @@
* ["Y", 1],
* ["Z", 2]
* ],
* renderings: {
* renderings: [{
* "key":"a|b|c"
* }
* }]
* }
* }
* ```