in src/TemplateRefGenerator/Generators/TocGenerator.cs [176:197]
private static void Print(TocItem toc, StringBuilder sb, int indentLevel)
{
var indent = GetIndent(indentLevel);
sb.AppendLine($"{indent}- name: {toc.Name}");
if (toc.DisplayName is {})
{
sb.AppendLine($"{indent} displayName: {toc.DisplayName}");
}
if (toc.Href is {})
{
sb.AppendLine($"{indent} href: {toc.Href}");
}
if (toc.Items.Any())
{
sb.AppendLine($"{indent} items:");
foreach (var child in toc.Items)
{
Print(child, sb, indentLevel + 1);
}
}
}