#mdbook #turns #book #docs

mdbook-to-example

Turns an mdbook book into a Rust example

1 unstable release

0.1.0 Jun 21, 2022

#1821 in Text processing

Custom license

8KB
126 lines

mdbook-to-example

Turns an mdbook book into a Rust example that can be used to create documentation with cargo doc

Getting started

// build.rs
fn main() -> Result<(), std::io::Error> {
    let _ = mdbook_to_example::Builder::new()
        .set_name("package-book")
        .run();
    Ok(())
}

No runtime deps