2017-03-14 12:25:45 +00:00
|
|
|
use std::env;
|
|
|
|
|
2017-03-08 00:13:50 +00:00
|
|
|
use gutenberg::errors::Result;
|
|
|
|
use gutenberg::Site;
|
2016-12-13 06:22:24 +00:00
|
|
|
|
2016-12-06 08:27:03 +00:00
|
|
|
|
2017-03-03 08:12:40 +00:00
|
|
|
pub fn build() -> Result<()> {
|
2017-03-20 10:00:00 +00:00
|
|
|
let mut site = Site::new(env::current_dir().unwrap())?;
|
|
|
|
site.parse()?;
|
|
|
|
site.build()
|
2016-12-13 09:05:59 +00:00
|
|
|
}
|