@@ -1097,24 +1097,23 @@ impl Xtasks {
1097
1097
1098
1098
fn docs ( mut app_settings : GlobalArgs , open : bool , no_rust_docs : bool ) -> Result < ( ) > {
1099
1099
// find [package.metadata."docs.rs"] key in Cargo.toml
1100
- if !no_rust_docs {
1101
- info ! ( "installing mdbook ladfile preprocessor binary" ) ;
1102
- Self :: install ( app_settings. clone ( ) , Binary :: MdbookPreprocessor ) ?;
1100
+ info ! ( "installing mdbook ladfile preprocessor binary" ) ;
1101
+ Self :: install ( app_settings. clone ( ) , Binary :: MdbookPreprocessor ) ?;
1103
1102
1104
- info ! ( "Running docgen example to generate ladfiles" ) ;
1105
- Self :: example ( app_settings. clone ( ) , "docgen" . to_owned ( ) ) ?;
1103
+ info ! ( "Running docgen example to generate ladfiles" ) ;
1104
+ Self :: example ( app_settings. clone ( ) , "docgen" . to_owned ( ) ) ?;
1106
1105
1107
- // copy the `<workspace>/assets/bindings.lad.json` file to it's path in the book
1108
- let ladfile_path =
1109
- Self :: relative_workspace_dir ( & app_settings, "assets/bindings.lad.json" ) ?;
1110
- let destination_path =
1111
- Self :: relative_workspace_dir ( & app_settings, "docs/src/ladfiles/bindings.lad.json" ) ?;
1106
+ // copy the `<workspace>/assets/bindings.lad.json` file to it's path in the book
1107
+ let ladfile_path = Self :: relative_workspace_dir ( & app_settings, "assets/bindings.lad.json" ) ?;
1108
+ let destination_path =
1109
+ Self :: relative_workspace_dir ( & app_settings, "docs/src/ladfiles/bindings.lad.json" ) ?;
1112
1110
1113
- info ! ( "Copying generated ladfile from: {ladfile_path:?} to: {destination_path:?}" ) ;
1114
- std:: fs:: create_dir_all ( destination_path. parent ( ) . unwrap ( ) ) ?;
1115
- std:: fs:: copy ( ladfile_path, destination_path)
1116
- . with_context ( || "copying generated ladfile" ) ?;
1111
+ info ! ( "Copying generated ladfile from: {ladfile_path:?} to: {destination_path:?}" ) ;
1112
+ std:: fs:: create_dir_all ( destination_path. parent ( ) . unwrap ( ) ) ?;
1113
+ std:: fs:: copy ( ladfile_path, destination_path)
1114
+ . with_context ( || "copying generated ladfile" ) ?;
1117
1115
1116
+ if !no_rust_docs {
1118
1117
info ! ( "Building rust docs" ) ;
1119
1118
let metadata = Self :: main_workspace_cargo_metadata ( ) ?;
1120
1119
0 commit comments