1 write to Heading
aspire (1)
Mcp\Docs\LlmsTxtParser.cs (1)
326Heading = heading,
21 references to Heading
aspire (5)
Mcp\Docs\DocsIndexService.cs (5)
241s.Heading.Equals(section, StringComparison.OrdinalIgnoreCase) || 242s.Heading.Contains(section, StringComparison.OrdinalIgnoreCase)); 256Sections = [.. doc.Source.Sections.Select(static s => s.Heading)] 288matchedSection = doc.Source.Sections[i].Heading; 452public string HeadingLower { get; } = source.Heading.ToLowerInvariant();
Aspire.Cli.Tests (16)
Mcp\Docs\LlmsTxtParserTests.cs (16)
109Assert.Equal("Section One", doc.Sections[0].Heading); 112Assert.Equal("Section Two", doc.Sections[1].Heading); 115Assert.Equal("Subsection", doc.Sections[2].Heading); 138var parentSection = doc.Sections.First(s => s.Heading == "Parent Section"); 357Assert.Equal("Why use Aspire?", overview.Sections[0].Heading); 358Assert.Equal("Getting started", overview.Sections[1].Heading); 366Assert.Equal("Configuration", serviceDefaults.Sections[0].Heading); 470var h2Sections = doc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 474var h3Sections = doc.Sections.Where(s => s.Level == 3).Select(s => s.Heading).ToList(); 503Assert.Equal("Real Section", doc.Sections[0].Heading); 518Assert.Equal("Getting Started", doc.Sections[0].Heading); 572var h2Sections = certificatesDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 591var h2Sections = appHostConfigDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 607var h2Sections = dockerComposeDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 623var h2Sections = eventingDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 630var h3Sections = eventingDoc.Sections.Where(s => s.Level == 3).Select(s => s.Heading).ToList();