Skip to main content

write_site

Function write_site 

Source
pub fn write_site(site: &Site, dir: &Path) -> Result<PathBuf, WriteError>
Expand description

Write site to dir, replacing a site written there before (spec §4.3). Returns the start page’s path.

The marker is never removed, and is written before any page, so a write cut short leaves a directory the next nova doc replaces.