Skip to main content

save_page

Function save_page 

Source
pub fn save_page(
    slug: &str,
    content: &str,
    state: &AppState,
) -> Result<(), LoreError>
Expand description

Save page content. Re-parses links, updates DB, graph, and FTS.

Upserts: if the page doesn’t exist, creates it automatically. If the page is a placeholder, promotes it to a real page.