From 09149c9e83b28e4167d8c11e30d665e176f01e48 Mon Sep 17 00:00:00 2001 From: "Nuno \"Omega Leo\" Diogo" Date: Sun, 14 Dec 2025 17:45:21 +0000 Subject: [PATCH] fixed documentation --- .../Controllers/HomeController.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/OmegaLeo.HelperLib.Web/Controllers/HomeController.cs b/OmegaLeo.HelperLib.Web/Controllers/HomeController.cs index db74e4e..ae354fd 100644 --- a/OmegaLeo.HelperLib.Web/Controllers/HomeController.cs +++ b/OmegaLeo.HelperLib.Web/Controllers/HomeController.cs @@ -266,8 +266,11 @@ public class HomeController : Controller IEnumerable allDocumentation = Enumerable.Empty(); try { + // Pass the specific assembly to only scan that assembly var result = DocumentationHelperTool.GenerateDocumentation(); - allDocumentation = result?.ToList() ?? Enumerable.Empty(); + allDocumentation = result? + .Where(d => d.AssemblyName?.Equals(assembly.GetName().Name ,StringComparison.OrdinalIgnoreCase) == true) + .ToList() ?? Enumerable.Empty(); _logger.LogInformation("GenerateDocumentation returned {Count} items for {Assembly}", allDocumentation.Count(), assembly.GetName().Name); @@ -293,7 +296,8 @@ public class HomeController : Controller throw; } - Dictionary> changelog = new Dictionary>(); + Dictionary> changelog = + new Dictionary>(); var changelogMarkdown = string.Empty; if (System.IO.File.Exists(changelogPath)) { @@ -322,8 +326,9 @@ public class HomeController : Controller Documentation = allDocumentation.ToList() }; - _logger.LogInformation("=== Completed GenerateLibraryDocs for {Assembly}. Total namespaces: {Count} ===", - assembly.GetName().Name, viewModel.Documentation.Select(d => d.AssemblyName).Distinct().Count()); + _logger.LogInformation( + "=== Completed GenerateLibraryDocs for {Assembly}. Total documentation items: {Count} ===", + assembly.GetName().Name, viewModel.Documentation.Count); return viewModel; }