Expand description
patch_page_content: block-tree edits on one page, with cross-page move and copy.
ModulesΒ§
- address π
- What page paths name, and where blocks, lists, anchors and ranges are in the current trees.
- pointer π
- Writes into a blockβs attributes at a JSON Pointer.
- replace_
list π - Replacing a children list with stubs, existing blocks and new blocks, and parsing new blocks.
StructsΒ§
- Block
Page Move - A block now on another page; a moved blockβs descendants are listed too.
- Editor π
- Page
Content Result - The new state after a successful call. Nothing is stored until the caller stages it.
ConstantsΒ§
- MAX_
BLOCK_ πDEPTH - Deeper trees stop loading: JSON nests two levels per block, and decoding stops at 128.
- NOT_
WRITABLE_ πBLOCKS - Raw HTML, synced patterns and the editorβs placeholder.
FunctionsΒ§
- apply
- Applies
opsin order topage.load_pagegives the page ato_pagenames,Nonewhen the course has no such page. Invariants are checked once, after the last op. - check_
creatable π - exercise_
must_ πstay_ top_ level - exercise_
read_ πonly - referenced_
pages π - Pages named by
to_page. - resolve_
label_ path - Resolves
$labelpath roots in a selector path after a call, forread_back. - text_
content π