You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: i18n-helpers/src/bin/mdbook-i18n.rs
+8-11Lines changed: 8 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,10 @@ struct I18nConfiguration {
29
29
translate_all_languages:bool,
30
30
/// Whether to move the translations to the html directory, defaults to false.
31
31
///
32
-
/// By default, translations's HTML output will live in `book/i18n/<language>/html`. If this is set to true, they will be moved to `book/html/<language>`.
32
+
/// By default, translations' output will live in `book/i18n/<language>/<renderer>`.
33
+
/// For all renderers in this list, we will move individual translations to `book/<renderer>/<language>`.
33
34
#[serde(default)]
34
-
move_translations_to_html_directory:bool,
35
+
move_translations_directories:Vec<String>,
35
36
}
36
37
37
38
fnmain(){
@@ -68,12 +69,6 @@ fn main() {
68
69
let output_directory = ctx.destination;
69
70
let default_language = &i18n_config.default_language;
70
71
71
-
// Create html directory if it doesn't exist.
72
-
if i18n_config.move_translations_to_html_directory{
0 commit comments