From 1b5137c84eaf2be9c5a5deb63ff1c631fe563b12 Mon Sep 17 00:00:00 2001 From: Michael Bryan Date: Sat, 30 Sep 2017 22:16:18 +0800 Subject: [PATCH] All tests pass again :) --- src/lib.rs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ad5cdc08..2cf5e3e7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,16 +21,17 @@ //! extern crate mdbook; //! //! use mdbook::MDBook; +//! use std::path::PathBuf; //! -//! # #[allow(unused_variables)] //! fn main() { -//! let mut book = MDBook::new("my-book") // Path to root -//! .with_source("src") // Path from root to source directory -//! .with_destination("book") // Path from root to output directory -//! .read_config() // Parse book.toml configuration file -//! .expect("I don't handle configuration file errors, but you should!"); -//! -//! book.build().unwrap(); // Render the book +//! let mut md = MDBook::new("my-book"); +//! +//! // tweak the book configuration a bit +//! md.config.book.src = PathBuf::from("source"); +//! md.config.book.build_dir = PathBuf::from("book"); +//! +//! // Render the book +//! md.build().unwrap(); //! } //! ``` //!