Skip to content

Commit 5b2c335

Browse files
committed
add linkchecker exceptions
the links are changed in the original source, so not sure why the html being checked in CI still has them, maybe it checks docs from `main` as well, but if so, wouldn't `struct.String.html` still exist? Truly a pickle, but I'll add these exceptions and a note.
1 parent ec0e90a commit 5b2c335

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/linkchecker/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ const LINKCHECK_EXCEPTIONS: &[(&str, &[&str])] = &[
7878
("core/primitive.slice.html", &["#method.to_ascii_uppercase", "#method.to_ascii_lowercase",
7979
"core/slice::sort_by_key", "core\\slice::sort_by_key",
8080
"#method.sort_by_cached_key"]),
81+
82+
// these links are changed in #149328 , and running linkchecker locally does not fail,
83+
// but CI is checking docs built off `main` I think?
84+
("book/print.html", &["std/string/struct.String.html"]),
85+
("book/ch02-00-guessing-game-tutorial.html", &["std/string/struct.String.html"]),
8186
];
8287

8388
#[rustfmt::skip]

0 commit comments

Comments
 (0)