@@ -76,12 +76,13 @@ impl Step for Docs {
76
76
let host = self . host ;
77
77
builder. default_doc ( & [ ] ) ;
78
78
79
- let dest = "share/doc/rust/html" ;
79
+ let dest = format ! ( "share/doc/rust/html/{host}" ) ;
80
80
81
81
let mut tarball = Tarball :: new ( builder, "rust-docs" , & host. triple ) ;
82
+ tarball. include_target_in_component_name ( true ) ;
82
83
tarball. set_product_name ( "Rust Documentation" ) ;
83
- tarball. add_bulk_dir ( builder. doc_out ( host) , dest) ;
84
- tarball. add_file ( builder. src . join ( "src/doc/robots.txt" ) , dest, FileType :: Regular ) ;
84
+ tarball. add_bulk_dir ( builder. doc_out ( host) , & dest) ;
85
+ tarball. add_file ( builder. src . join ( "src/doc/robots.txt" ) , & dest, FileType :: Regular ) ;
85
86
Some ( tarball. generate ( ) )
86
87
}
87
88
}
@@ -113,12 +114,13 @@ impl Step for JsonDocs {
113
114
DocumentationFormat :: Json ,
114
115
) ) ;
115
116
116
- let dest = "share/doc/rust/json" ;
117
+ let dest = format ! ( "share/doc/rust/json/{host}" ) ;
117
118
118
119
let mut tarball = Tarball :: new ( builder, "rust-docs-json" , & host. triple ) ;
120
+ tarball. include_target_in_component_name ( true ) ;
119
121
tarball. set_product_name ( "Rust Documentation In JSON Format" ) ;
120
122
tarball. is_preview ( true ) ;
121
- tarball. add_bulk_dir ( builder. json_doc_out ( host) , dest) ;
123
+ tarball. add_bulk_dir ( builder. json_doc_out ( host) , & dest) ;
122
124
Some ( tarball. generate ( ) )
123
125
}
124
126
}
0 commit comments