Expand description
patch_course_structure: modules, chapters and pages, their order, names, titles, paths and
chapter dates. Paths, chapter numbers and redirects are derived once at the end of a call.
Re-exportsยง
pub use model::CourseStructure;pub use model::StructureChapter;pub use model::StructureModule;pub use model::StructurePage;pub use outline::StructureOutline;pub use outline::outline;pub use paths::LinkToOldPath;
Modulesยง
- editor ๐
- The editor that applies structure ops one by one to a copy of the course tree.
- fields ๐
- The fields ops may set on modules, chapters and pages, and their value checks.
- model ๐
- The course tree the structure tools read and edit, and the paths that address it.
- outline ๐
- A compact account of what a structure call changed, for dry runs.
- paths ๐
- Page URL paths: the ones a structure call derives at its end, and links to the old ones.
Structsยง
- Chapter
Renumber - A chapter whose number changed because chapters before it moved.
- Page
Copy - A page
copycreated; the caller copies the source pageโs content to it. - Structure
Result - The new state after a successful call. Nothing is stored until the caller stages it.
Functionsยง
- apply
- Applies
opsin order todoc. In a live course (not a draft, not in test mode) new pages without content start hidden.