MCPcopy Create free account
hub / github.com/PerroEngine/Perro / first_para

Function first_para

perro_website/build.rs:377–386  ·  view source on GitHub ↗
(markdown: &str)

Source from the content-addressed store, hash-verified

375 for entry in fs::read_dir(dir)? {
376 let path = entry?.path();
377 if path.is_dir() {
378 collect_markdown(collection, root, &path, out)?;
379 continue;
380 }
381 if path.extension().and_then(|s| s.to_str()) != Some("md") {
382 continue;
383 }
384 let rel = path
385 .strip_prefix(root)
386 .map_err(|err| io::Error::new(io::ErrorKind::InvalidData, err))?;
387 let slug = slug_from_rel(rel);
388 push_doc(collection, &path, slug, out)?;
389 }

Callers 1

push_docFunction · 0.85

Calls 2

findMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected