use std::env; use errors::Result; use site::Site; use console; pub fn build(config_file: &str, base_url: Option<&str>) -> Result<()> { let mut site = Site::new(env::current_dir().unwrap(), config_file)?; if let Some(b) = base_url { site.config.base_url = b.to_string(); } site.load()?; console::notify_site_size(&site); console::warn_about_ignored_pages(&site); site.build() }