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

Function needs_demo_rebuild

perro_website/build.rs:131–153  ·  view source on GitHub ↗
(
    project_root: &Path,
    output_dir: &Path,
    public_dir: &Path,
)

Source from the content-addressed store, hash-verified

129 failures.push(format!(
130 "{} has unknown nav group {}",
131 doc.route_path, doc.nav_group
132 ));
133 }
134 }
135
136 let mut ids = BTreeSet::new();
137 for heading in &doc.headings {
138 if !ids.insert(heading.id.as_str()) {
139 failures.push(format!(
140 "{} repeats heading id {}",
141 doc.route_path, heading.id
142 ));
143 }
144 }
145 }
146
147 for group in DOC_GROUPS {
148 if !found_groups.contains(group) {
149 failures.push(format!("nav group {group} has no pages"));
150 }
151 }
152
153 for doc in docs {
154 for event in Parser::new(&doc.markdown) {
155 let target = match event {
156 Event::Start(Tag::Link { dest_url, .. })

Callers 1

build_and_sync_demoFunction · 0.85

Calls 3

bundle_completeFunction · 0.85
newest_mtimeFunction · 0.85
newest_demo_input_mtimeFunction · 0.85

Tested by

no test coverage detected