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; }