(
project_root: &Path,
output_dir: &Path,
public_dir: &Path,
)
| 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, .. }) |
no test coverage detected