Skip to main content

Module paths

Module paths 

Source
Expand description

Exercise paths: /tasks/<task id>/... and /review_instructions/..., and the page-content paths of the instructions they lead into.

Structsยง

PartOps ๐Ÿ”’
The ops of one instruction list, with their indexes in the call.

Enumsยง

ExercisePart ๐Ÿ”’
Which part of an exercise a path starts at.

Functionsยง

call_index ๐Ÿ”’
The callโ€™s index of op op of a group whose ops are at indexes in the call.
group_ops ๐Ÿ”’
Groups the ops by the instructions they edit and rewrites their paths to page-content paths.
in_call ๐Ÿ”’
error of one groupโ€™s ops, with the op index it names translated to the callโ€™s.
part_list ๐Ÿ”’
The instruction list part of the exercise is in state, or why it has none.
part_prefix ๐Ÿ”’
The prefix to put back on the paths a read of part returns.
prefix_paths ๐Ÿ”’
Prefixes every block path in a read result with prefix.
split_exercise_path ๐Ÿ”’
Splits /tasks/<task id>/rest or /review_instructions/rest into the part and the page-content path of the rest, "" for the partโ€™s top level.