Skip to content

Commit 1a20968

Browse files
Merge pull request #281 from QuietMisdreavus/new-files
updates to handle new nightlies
2 parents 017c47c + 419d9b1 commit 1a20968

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/docbuilder/chroot_builder.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ impl DocBuilder {
385385
"settings.css",
386386
"storage.js",
387387
"theme.js",
388-
"source-script.js"],
388+
"source-script.js",
389+
"noscript.css"],
389390
// files doesn't require rustc version subfix
390391
["FiraSans-Medium.woff",
391392
"FiraSans-Regular.woff",

src/utils/build_doc.rs

+3-1
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)