Skip to content

Commit

Permalink
fix locale option for continue-build (#7642)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryBerryMS authored Sep 28, 2021
1 parent d663a3c commit 2986548
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/docfx/cli/Docfx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ private static Command BuildCommand(Package? package)
"--template-base-path", "The base path used for referencing the template resource file when applying liquid."));
command.AddOption(new Option<bool>(
"--continue", "Continue build based on intermediate json output."));
command.AddOption(new Option<string>(
"--locale", "Locale info for continue build."));
return command;
}

Expand Down
1 change: 1 addition & 0 deletions test/docfx.Test/DocfxTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ private static void RunBuild(string docsetPath, string outputPath, bool dryRun,
"--output", randomOutputPath,
"--log", Path.Combine(randomOutputPath, ".errors.log"),
"--continue",
"--locale", spec.Locale ?? "en-us",
"--template", GetTemplatePath(package, s_repos.Value),
"--output-type", "pageJson",
spec.NoRestore ? "--no-restore" : null,
Expand Down

0 comments on commit 2986548

Please sign in to comment.