1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Zorto core — the library powering the zorto static site generator.
//!
//! # Overview
//!
//! Zorto builds static websites from Markdown content with TOML frontmatter,
//! Tera templates, and optional SCSS compilation. Its distinguishing feature is
//! *executable code blocks*: fenced blocks marked `{python}`, `{bash}`, or
//! `{sh}` are executed at build time and their output is rendered inline.
//!
//! # Library usage
//!
//! The primary entry point for programmatic use is [`site::Site`]:
//!
//! ```no_run
//! use std::path::Path;
//! use zorto_core::site::Site;
//!
//! let root = Path::new("my-site");
//! let output = root.join("public");
//! let mut site = Site::load(root, &output, false)?;
//! site.build()?;
//! # Ok::<(), anyhow::Error>(())
//! ```
pub
pub
pub
pub
pub