From 99a1f384b3208801e6f281a3688ef0e1c41abf45 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 8 Jan 2026 08:57:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E7=9B=AE=E5=BD=95=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ArgumentsHelper.cs | 12 ++++++++++-- .../DocsGenerator.cs | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tools/BootstrapBlazor.LLMsDocsGenerator/ArgumentsHelper.cs b/tools/BootstrapBlazor.LLMsDocsGenerator/ArgumentsHelper.cs index 11f58288..b738813a 100644 --- a/tools/BootstrapBlazor.LLMsDocsGenerator/ArgumentsHelper.cs +++ b/tools/BootstrapBlazor.LLMsDocsGenerator/ArgumentsHelper.cs @@ -12,10 +12,12 @@ internal static class ArgumentsHelper public static ParseResult Parse(string[] args) { var rootFolderOption = new Option("--root") { Description = "Set the root folder of project" }; + var outputFolderOption = new Option("--output") { Description = "Set the publish folder of project" }; var rootCommand = new RootCommand("BootstrapBlazor LLMs Documentation Generator") { - rootFolderOption + rootFolderOption, + outputFolderOption }; rootCommand.SetAction(async result => @@ -26,7 +28,13 @@ public static ParseResult Parse(string[] args) return; } - await DocsGenerator.GenerateAllAsync(rootFolder); + var outputFolder = result.GetValue(outputFolderOption); + if (string.IsNullOrEmpty(outputFolder)) + { + return; + } + + await DocsGenerator.GenerateAllAsync(rootFolder, outputFolder); }); return rootCommand.Parse(args); diff --git a/tools/BootstrapBlazor.LLMsDocsGenerator/DocsGenerator.cs b/tools/BootstrapBlazor.LLMsDocsGenerator/DocsGenerator.cs index 8e6ea017..c9704834 100644 --- a/tools/BootstrapBlazor.LLMsDocsGenerator/DocsGenerator.cs +++ b/tools/BootstrapBlazor.LLMsDocsGenerator/DocsGenerator.cs @@ -10,10 +10,10 @@ internal static class DocsGenerator /// /// Generate all documentation files /// - public static async Task GenerateAllAsync(string rootFolder) + public static async Task GenerateAllAsync(string rootFolder, string outputFolder) { var _sourcePath = Path.Combine(rootFolder, "..", "BootstrapBlazor"); - var _outputPath = Path.Combine(rootFolder, "bin", "Release", "net10.0", "publish", "wwwroot", "llms"); + var _outputPath = Path.Combine(outputFolder, "wwwroot", "llms"); var _componentsOutputPath = Path.Combine(_outputPath, "components"); Logger($"Source path: {_sourcePath}"); From e288dbce257598d99858728bce18d57d2a173dfe Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 8 Jan 2026 08:57:57 +0800 Subject: [PATCH 2/2] chore: bump version 10.0.2 --- .../BootstrapBlazor.LLMsDocsGenerator.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/BootstrapBlazor.LLMsDocsGenerator/BootstrapBlazor.LLMsDocsGenerator.csproj b/tools/BootstrapBlazor.LLMsDocsGenerator/BootstrapBlazor.LLMsDocsGenerator.csproj index c5f84f95..291e4ff3 100644 --- a/tools/BootstrapBlazor.LLMsDocsGenerator/BootstrapBlazor.LLMsDocsGenerator.csproj +++ b/tools/BootstrapBlazor.LLMsDocsGenerator/BootstrapBlazor.LLMsDocsGenerator.csproj @@ -1,7 +1,7 @@  - 10.0.1 + 10.0.2 Exe net10.0 enable