All tests pass again :)

This commit is contained in:
Michael Bryan 2017-09-30 22:16:18 +08:00
parent 18c725ee12
commit 1b5137c84e
No known key found for this signature in database
GPG Key ID: E9C602B0D9A998DC
1 changed files with 9 additions and 8 deletions

View File

@ -21,16 +21,17 @@
//! extern crate mdbook; //! extern crate mdbook;
//! //!
//! use mdbook::MDBook; //! use mdbook::MDBook;
//! use std::path::PathBuf;
//! //!
//! # #[allow(unused_variables)]
//! fn main() { //! fn main() {
//! let mut book = MDBook::new("my-book") // Path to root //! let mut md = MDBook::new("my-book");
//! .with_source("src") // Path from root to source directory //!
//! .with_destination("book") // Path from root to output directory //! // tweak the book configuration a bit
//! .read_config() // Parse book.toml configuration file //! md.config.book.src = PathBuf::from("source");
//! .expect("I don't handle configuration file errors, but you should!"); //! md.config.book.build_dir = PathBuf::from("book");
//! //!
//! book.build().unwrap(); // Render the book //! // Render the book
//! md.build().unwrap();
//! } //! }
//! ``` //! ```
//! //!