bim 0.1.0

A content-first static site generator for blogs, digital gardens, and knowledge bases
Documentation
use std::path::PathBuf;

#[derive(Debug, Clone)]
pub struct Config {
    pub source_dir: PathBuf,
    pub output_dir: PathBuf,
    pub include_drafts: bool,
    pub server_port: u16,
    pub server_host: String,
    pub max_image_width: u32,
    pub max_image_height: u32,
    pub image_quality: u8,
    pub force_image_rebuild: bool,
}

impl Default for Config {
    fn default() -> Self {
        Self {
            source_dir: PathBuf::from("."),
            output_dir: PathBuf::from("dist"),
            include_drafts: false,
            server_port: 3000,
            server_host: "127.0.0.1".to_string(),
            max_image_width: 1920,
            max_image_height: 1080,
            image_quality: 85,
            force_image_rebuild: false,
        }
    }
}