Skip to content

Commit 6f9cbdb

Browse files
committed
Fix bundle loader behavior
1 parent 4ec5cd8 commit 6f9cbdb

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

src/Elastic.Documentation.Configuration/ReleaseNotes/BundleLoader.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,17 @@ private static LoadedBundle MergeBundleGroup(IGrouping<string, LoadedBundle> gro
217217
// Use the first bundle's metadata as the base
218218
var first = bundlesList[0];
219219

220-
// Use first description only; multi-bundle description merging is not yet supported
221-
var mergedDescription = bundlesList
220+
var descriptions = bundlesList
222221
.Select(b => b.Data?.Description)
223-
.FirstOrDefault(d => !string.IsNullOrEmpty(d));
222+
.Where(d => !string.IsNullOrEmpty(d))
223+
.ToList();
224+
225+
var mergedDescription = descriptions.Count switch
226+
{
227+
0 => null,
228+
1 => descriptions[0],
229+
_ => string.Join("\n\n", descriptions)
230+
};
224231

225232
var mergedData = first.Data with { Description = mergedDescription };
226233

0 commit comments

Comments
 (0)