mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-10 06:04:20 +00:00
14 lines
362 B
Rust
14 lines
362 B
Rust
extern crate skeptic;
|
|
|
|
use std::fs;
|
|
|
|
fn main() {
|
|
let paths = fs::read_dir("./src/pages/").unwrap()
|
|
// convert paths to Strings
|
|
.map(|p| p.unwrap().path().to_str().unwrap().to_string())
|
|
// only compile markdown files
|
|
.filter(|p| p.ends_with(".md"))
|
|
.collect::<Vec<_>>();
|
|
|
|
skeptic::generate_doc_tests(&paths[..]);
|
|
}
|