Crates.io | mdbook-to-example |
lib.rs | mdbook-to-example |
version | 0.1.0 |
source | src |
created_at | 2022-06-21 20:47:54.646467 |
updated_at | 2022-06-21 20:47:54.646467 |
description | Turns an mdbook book into a Rust example |
homepage | |
repository | |
max_upload_size | |
id | 610527 |
size | 9,432 |
Turns an mdbook
book into a Rust example that can be used to create documentation with cargo doc
// build.rs
fn main() -> Result<(), std::io::Error> {
let _ = mdbook_to_example::Builder::new()
.set_name("package-book")
.run();
Ok(())
}