We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 433d70c commit 8e0baf4Copy full SHA for 8e0baf4
src/tools/linkchecker/main.rs
@@ -191,6 +191,12 @@ fn check(cache: &mut Cache,
191
// exist! If it doesn't then we register and print an error.
192
if path.exists() {
193
if path.is_dir() {
194
+ // Links to directories show as directory listings when viewing
195
+ // the docs offline so it's best to avoid them.
196
+ *errors = true;
197
+ let pretty_path = path.strip_prefix(root).unwrap_or(&path);
198
+ println!("{}:{}: directory link - {}", pretty_file.display(),
199
+ i + 1, pretty_path.display());
200
return;
201
}
202
let res = load_file(cache, root, path.clone(), FromRedirect(false));
0 commit comments