use std::fs;
use mdbook_typstpdf::Config;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = Config::default();
let toml_str = toml::to_string(&config)?;
let current_dir = std::env::current_dir()?;
fs::write(current_dir.join("target/config.toml"), toml_str)?;
Ok(())
}