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

Function book_pages

perro_website/src/docs.rs:43–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 .iter()
42 .filter(|doc| doc.collection == "docs")
43 .collect()
44}
45
46pub fn book_pages() -> Vec<&'static DocPage> {
47 let mut pages = docs()
48 .iter()
49 .filter(|doc| doc.collection == "book")
50 .collect::<Vec<_>>();
51 pages.sort_by_key(|doc| book_rank(&doc.slug));
52 pages
53}

Callers 1

BookArticleFunction · 0.85

Calls 3

docsFunction · 0.85
book_rankFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected