File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2113,7 +2113,8 @@ impl Context {
21132113 & final_file) ;
21142114
21152115 // Generating settings page.
2116- let settings = Settings :: new ( "./" , & self . shared . resource_suffix ) ;
2116+ let settings = Settings :: new ( self . shared . static_root_path . deref ( ) . unwrap_or ( "./" ) ,
2117+ & self . shared . resource_suffix ) ;
21172118 page. title = "Rustdoc settings" ;
21182119 page. description = "Settings of Rustdoc" ;
21192120 page. root_path = "./" ;
Original file line number Diff line number Diff line change @@ -12,3 +12,7 @@ pub struct SomeStruct;
1212// @!matches - '"\.\./\.\./source-script\.js"'
1313// @matches - '"\.\./\.\./source-files.js"'
1414// @!matches - '"/cache/source-files\.js"'
15+
16+ // @has settings.html
17+ // @matches - '/cache/settings\.js'
18+ // @!matches - '\./settings\.js'
You can’t perform that action at this time.
0 commit comments