From 726018307e5b926e1070c161e0b5eb8c9dd4a369 Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Thu, 6 Aug 2015 12:52:06 +0200 Subject: [PATCH] ignored test, have to fix some bugs before --- src/lib.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f8a40be8..d4f0df31 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,17 +17,19 @@ //! //! ## Example //! -//! ``` +//! ```ignore //! extern crate mdbook; //! //! use mdbook::MDBook; +//! use std::path::Path; //! //! fn main() { -//! let book = MDBook::new("my-book") -//! .set_src("source_dir") -//! .set_dest("output_dir") -//! .read_config() // Reads book.json file for settings +//! let mut book = MDBook::new(Path::new("book-test")) // ERROR directory does not exist... +//! .set_src(Path::new("source")) +//! .set_dest(Path::new("output")) +//! .read_config(); // Reads book.json file for settings //! +//! book.init().unwrap(); //! book.build().unwrap(); //! } //! ```