use --static-root-path for settings.js

This commit is contained in:
QuietMisdreavus 2019-04-15 11:20:08 -05:00
parent fcf850f34a
commit 1c0e1c10d5
2 changed files with 6 additions and 1 deletions

View File

@ -2113,7 +2113,8 @@ impl Context {
&final_file);
// Generating settings page.
let settings = Settings::new("./", &self.shared.resource_suffix);
let settings = Settings::new(self.shared.static_root_path.deref().unwrap_or("./"),
&self.shared.resource_suffix);
page.title = "Rustdoc settings";
page.description = "Settings of Rustdoc";
page.root_path = "./";

View File

@ -12,3 +12,7 @@ pub struct SomeStruct;
// @!matches - '"\.\./\.\./source-script\.js"'
// @matches - '"\.\./\.\./source-files.js"'
// @!matches - '"/cache/source-files\.js"'
// @has settings.html
// @matches - '/cache/settings\.js'
// @!matches - '\./settings\.js'