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.

34 lines
779B

  1. mod init;
  2. mod build;
  3. mod serve;
  4. pub use self::init::create_new_project;
  5. pub use self::build::build;
  6. pub use self::serve::serve;
  7. use gutenberg::Site;
  8. use console::warn;
  9. fn notify_site_size(site: &Site) {
  10. println!(
  11. "-> Creating {} pages ({} orphan) and {} sections",
  12. site.pages.len(),
  13. site.get_all_orphan_pages().len(),
  14. site.sections.len()
  15. );
  16. }
  17. fn warn_about_ignored_pages(site: &Site) {
  18. let ignored_pages = site.get_ignored_pages();
  19. if !ignored_pages.is_empty() {
  20. warn(&format!(
  21. "{} page(s) ignored (missing date or order in a sorted section):",
  22. ignored_pages.len()
  23. ));
  24. for path in site.get_ignored_pages() {
  25. warn(&format!("- {}", path.display()));
  26. }
  27. }
  28. }