]> git.lizzy.rs Git - rust.git/commitdiff
use --static-root-path for settings.js
authorQuietMisdreavus <grey@quietmisdreavus.net>
Mon, 15 Apr 2019 16:20:08 +0000 (11:20 -0500)
committerQuietMisdreavus <grey@quietmisdreavus.net>
Mon, 15 Apr 2019 16:20:08 +0000 (11:20 -0500)
src/librustdoc/html/render.rs
src/test/rustdoc/static-root-path.rs

index 3ee131d8f5c8c6186d063c37545203f2632258b4..d91b78c8416b81748e5c099551de19b832992a99 100644 (file)
@@ -2113,7 +2113,8 @@ fn krate(self, mut krate: clean::Crate) -> Result<(), Error> {
                  &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 = "./";
index 84b32f90c89a419c1e68c52132b0766b82e21c14..2f7c89c5f1e6b7376d277d22165b9131eb5189fc 100644 (file)
@@ -12,3 +12,7 @@
 // @!matches - '"\.\./\.\./source-script\.js"'
 // @matches - '"\.\./\.\./source-files.js"'
 // @!matches - '"/cache/source-files\.js"'
+
+// @has settings.html
+// @matches - '/cache/settings\.js'
+// @!matches - '\./settings\.js'