This commit is contained in:
Vincent Prouillet 2022-05-11 22:34:36 +02:00
parent 1a3b783120
commit 76b0b5f5dd
3 changed files with 5 additions and 5 deletions

View File

@ -99,7 +99,7 @@ impl<'a> SerializingPage<'a> {
.map(|p| Box::new(Self::new(&lib.pages[p], Some(lib), false)));
}
backlinks = find_backlinks(&page.file.relative, &lib);
backlinks = find_backlinks(&page.file.relative, lib);
}
Self {
@ -192,7 +192,7 @@ impl<'a> SerializingSection<'a> {
}
}
backlinks = find_backlinks(&section.file.relative, &lib);
backlinks = find_backlinks(&section.file.relative, lib);
}
}

View File

@ -311,7 +311,7 @@ impl Site {
);
match self.config.link_checker.internal_level {
config::LinkCheckerLevel::Warn => console::warn(&msg),
config::LinkCheckerLevel::Error => return Err(anyhow!(msg.clone())),
config::LinkCheckerLevel::Error => return Err(anyhow!(msg)),
}
}
@ -331,7 +331,7 @@ impl Site {
);
match self.config.link_checker.external_level {
config::LinkCheckerLevel::Warn => console::warn(&msg),
config::LinkCheckerLevel::Error => return Err(anyhow!(msg.clone())),
config::LinkCheckerLevel::Error => return Err(anyhow!(msg)),
}
}
}

View File

@ -152,7 +152,7 @@ pub fn check_external_links(site: &Site) -> Vec<String> {
// the ones that have invalid URLs
for (file_path, links) in external_links {
for link in links {
if should_skip_by_prefix(&link, &site.config.link_checker.skip_prefixes) {
if should_skip_by_prefix(link, &site.config.link_checker.skip_prefixes) {
skipped_link_count += 1;
} else {
match get_link_domain(link) {