From 2986548c1ccdce25b0114ab8c04f04c3ef1070dd Mon Sep 17 00:00:00 2001 From: Shichao Zhang Date: Tue, 28 Sep 2021 09:45:45 +0800 Subject: [PATCH] fix locale option for continue-build (#7642) --- src/docfx/cli/Docfx.cs | 2 ++ test/docfx.Test/DocfxTest.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/docfx/cli/Docfx.cs b/src/docfx/cli/Docfx.cs index e8b4ad0063d..9a3c50fc5c7 100644 --- a/src/docfx/cli/Docfx.cs +++ b/src/docfx/cli/Docfx.cs @@ -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( "--continue", "Continue build based on intermediate json output.")); + command.AddOption(new Option( + "--locale", "Locale info for continue build.")); return command; } diff --git a/test/docfx.Test/DocfxTest.cs b/test/docfx.Test/DocfxTest.cs index 4d6d678e2bd..4ccb7163bce 100644 --- a/test/docfx.Test/DocfxTest.cs +++ b/test/docfx.Test/DocfxTest.cs @@ -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,