Skip to main content

compile_site

Function compile_site 

Source
pub fn compile_site(src: &Path, out: &Path) -> Result<SiteReport>
Expand description

Compile every .md under src (recursive, hidden dirs skipped) into the mirrored .html layout under out, as full documents with the SEO head. Front-matter (title, description, slug, date) overrides the title/description/route/date fallbacks. Directive roots are each page’s own directory, matching the single-file CLI’s default. One bad page never blocks the others: its error lands in the report. A site.toml with base_url additionally emits llms.txt, sitemap.xml, and robots.txt into out.

§Errors

I/O failures on the tree walk or output creation.