Skip to content

Commit 419d9b1

Browse files
send --static-root-path and --disable-per-crate-search to rustdoc
1 parent 343cf65 commit 419d9b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/build_doc.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ pub fn build_doc(name: &str, vers: Option<&str>, target: Option<&str>) -> Result
7575
let mut rustdoc_args: Vec<String> =
7676
vec!["-Z".to_string(), "unstable-options".to_string(),
7777
"--resource-suffix".to_string(),
78-
format!("-{}", parse_rustc_version(get_current_versions()?.0)?)];
78+
format!("-{}", parse_rustc_version(get_current_versions()?.0)?),
79+
"--static-root-path".to_string(), "/".to_string(),
80+
"--disable-per-crate-search".to_string()];
7981

8082
// since https://github.com/rust-lang/rust/pull/51384, we can pass --extern-html-root-url to
8183
// force rustdoc to link to other docs.rs docs for dependencies

0 commit comments

Comments
 (0)