File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,15 @@ impl RustwideBuilder {
227
227
. tempdir ( ) ?;
228
228
copy_dir_all ( source, & dest) ?;
229
229
230
- add_path_into_database ( & self . storage , RUSTDOC_STATIC_STORAGE_PREFIX , & dest) ?;
230
+ // One https://github.com/rust-lang/rust/pull/101702 lands, static files will be
231
+ // put in their own directory, "static.files". To make sure those files are
232
+ // available at --static-root-path, we add files from that subdirectory, if present.
233
+ let static_files = dest. as_ref ( ) . join ( "static.files" ) ;
234
+ if static_files. try_exists ( ) ? {
235
+ add_path_into_database ( & self . storage , RUSTDOC_STATIC_STORAGE_PREFIX , & static_files) ?;
236
+ } else {
237
+ add_path_into_database ( & self . storage , RUSTDOC_STATIC_STORAGE_PREFIX , & dest) ?;
238
+ }
231
239
232
240
set_config (
233
241
& mut conn,
You can’t perform that action at this time.
0 commit comments