(src: &Path, dst: &Path)
| 206 | if let Some(fragment) = fragment { |
| 207 | if !fragment.is_empty() |
| 208 | && !target_doc |
| 209 | .headings |
| 210 | .iter() |
| 211 | .any(|heading| heading.id == fragment) |
| 212 | { |
| 213 | failures.push(format!( |
| 214 | "{} links to missing anchor {path}#{fragment}", |
| 215 | source.route_path |
| 216 | )); |
| 217 | } |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | fn build_and_sync_demo(root: &Path, project_name: &str, public_name: &str) -> io::Result<()> { |
| 222 | let project_root = root.join("demos").join(project_name); |
| 223 | emit_rerun_for_tree(&project_root)?; |