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.

build.rs 320B

123456789101112
  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. println!("-> Creating {} pages and {} sections", site.pages.len(), site.sections.len());
  8. site.build()
  9. }