All tests pass again :)
This commit is contained in:
parent
18c725ee12
commit
1b5137c84e
15
src/lib.rs
15
src/lib.rs
|
@ -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
|
|
||||||
//! .read_config() // Parse book.toml configuration file
|
|
||||||
//! .expect("I don't handle configuration file errors, but you should!");
|
|
||||||
//!
|
//!
|
||||||
//! book.build().unwrap(); // Render the 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();
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
|
|
Loading…
Reference in New Issue