You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
307B

  1. use std::env;
  2. use gutenberg::errors::Result;
  3. use gutenberg::Site;
  4. pub fn build(config_file: &str) -> Result<()> {
  5. let mut site = Site::new(env::current_dir().unwrap(), config_file)?;
  6. site.load()?;
  7. super::notify_site_size(&site);
  8. super::warn_about_ignored_pages(&site);
  9. site.build()
  10. }