We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcf850f commit 1c0e1c1Copy full SHA for 1c0e1c1
src/librustdoc/html/render.rs
@@ -2113,7 +2113,8 @@ impl Context {
2113
&final_file);
2114
2115
// Generating settings page.
2116
- let settings = Settings::new("./", &self.shared.resource_suffix);
+ let settings = Settings::new(self.shared.static_root_path.deref().unwrap_or("./"),
2117
+ &self.shared.resource_suffix);
2118
page.title = "Rustdoc settings";
2119
page.description = "Settings of Rustdoc";
2120
page.root_path = "./";
src/test/rustdoc/static-root-path.rs
@@ -12,3 +12,7 @@ pub struct SomeStruct;
12
// @!matches - '"\.\./\.\./source-script\.js"'
13
// @matches - '"\.\./\.\./source-files.js"'
14
// @!matches - '"/cache/source-files\.js"'
15
+
16
+// @has settings.html
17
+// @matches - '/cache/settings\.js'
18
+// @!matches - '\./settings\.js'
0 commit comments