Expand description
Exercise task and review instructions (own or course default’s) as block documents, edited by the engines like pages under an id of their own.
Structs§
- Exercise
Text Parts - Which exercise text
text_documentsincludes. - Instructions
Location - Where an instruction list is, for results: its exercise and the path
patch_exercisetakes.
Enums§
- Instructions
List - One list of instruction blocks.
Statics§
- MARKUP 🔒
Functions§
- apply_
documents - Writes documents a course-wide engine changed into
after: page blocks, instruction lists and exercise names. Errors if a name would no longer be a valid one. - changed_
lists - The instruction lists that differ from
before, by exercise id and then the course default’s. Listsbeforelacks count as changed whole. - checked_
name - The name as stored: trimmed, non-empty plain text on one line.
- lists_
of_ pages - The instruction lists of the exercises on
page_ids, in page and block order, and the course default’s whenwith_course_defaultor when one of those exercises uses it. Review instructions count only for exercises with reviews. - parse_
blocks - The blocks of stored instructions;
nullis no blocks. Errors if they aren’t blocks. - review_
list - The review instructions an exercise shows: its own, or the course default’s.
Nonewhen it has no peer or self reviews. - text_
documents - Exercise text on
page_idsfor the course-wide engines: instruction lists (the course default’s too when an exercise uses it; unparseable lists skipped) and names, aspartspicks. Names are one paragraph each, escaped like rich text so entities read as on pages.