1 write to Heading
aspire (1)
Documentation\Docs\LlmsTxtParser.cs (1)
488Heading = heading,
21 references to Heading
aspire (5)
Documentation\Docs\DocsIndexService.cs (5)
439s.Heading.Equals(section, StringComparison.OrdinalIgnoreCase) || 440s.Heading.Contains(section, StringComparison.OrdinalIgnoreCase)); 457Sections = [.. doc.Source.Sections.Select(static s => s.Heading)] 526matchedSection = doc.Source.Sections[i].Heading; 1198public string HeadingLower { get; } = NormalizeSearchText(source.Heading);
Aspire.Cli.Tests (16)
Mcp\Docs\LlmsTxtParserTests.cs (16)
110Assert.Equal("Section One", doc.Sections[0].Heading); 113Assert.Equal("Section Two", doc.Sections[1].Heading); 116Assert.Equal("Subsection", doc.Sections[2].Heading); 139var parentSection = doc.Sections.First(s => s.Heading == "Parent Section"); 460Assert.Equal("Why use Aspire?", overview.Sections[0].Heading); 461Assert.Equal("Getting started", overview.Sections[1].Heading); 469Assert.Equal("Configuration", serviceDefaults.Sections[0].Heading); 602var h2Sections = doc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 606var h3Sections = doc.Sections.Where(s => s.Level == 3).Select(s => s.Heading).ToList(); 635Assert.Equal("Real Section", doc.Sections[0].Heading); 650Assert.Equal("Getting Started", doc.Sections[0].Heading); 704var h2Sections = certificatesDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 723var h2Sections = appHostConfigDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 739var h2Sections = dockerComposeDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 755var h2Sections = eventingDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 762var h3Sections = eventingDoc.Sections.Where(s => s.Level == 3).Select(s => s.Heading).ToList();