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

Function emit_rerun_for_tree

perro_website/build.rs:103–123  ·  view source on GitHub ↗
(dir: &Path)

Source from the content-addressed store, hash-verified

101 "History",
102 ];
103
104 let mut failures = Vec::new();
105 let mut routes = BTreeMap::<&str, &DocOut>::new();
106 let mut nav_positions = BTreeSet::new();
107 let mut found_groups = BTreeSet::new();
108
109 for doc in docs {
110 if doc.summary.trim().is_empty() {
111 failures.push(format!("{} has empty summary", doc.route_path));
112 }
113 if routes.insert(doc.route_path.as_str(), doc).is_some() {
114 failures.push(format!("duplicate route {}", doc.route_path));
115 }
116 if !nav_positions.insert((
117 doc.collection.as_str(),
118 doc.nav_group.as_str(),
119 doc.nav_order,
120 )) {
121 failures.push(format!(
122 "duplicate nav order {} / {} / {}",
123 doc.collection, doc.nav_group, doc.nav_order
124 ));
125 }
126 if doc.collection == "docs" {

Callers 1

build_and_sync_demoFunction · 0.85

Calls 2

read_dirFunction · 0.85
pathMethod · 0.45

Tested by

no test coverage detected