Skip to main content

create_page

Function create_page 

Source
pub fn create_page(
    page: &Page,
    links_to: &[String],
    new_id: NewId<'_>,
) -> (Vec<EventSpec>, String)
Expand description

The events that create page: the page node, its sections with their part_of edges, its notes with their about edges (to the page) and a links_to edge per linked page id. Bodies must already be in storage form (crate::links::to_storage). Returns the events and the page id.