1 write to Heading
aspire (1)
Mcp\Docs\LlmsTxtParser.cs (1)
326Heading = heading,
21 references to Heading
aspire (5)
Mcp\Docs\DocsIndexService.cs (5)
278s.Heading.Equals(section, StringComparison.OrdinalIgnoreCase) || 279s.Heading.Contains(section, StringComparison.OrdinalIgnoreCase)); 293Sections = [.. doc.Source.Sections.Select(static s => s.Heading)] 329matchedSection = doc.Source.Sections[i].Heading; 626public string HeadingLower { get; } = source.Heading.ToLowerInvariant();
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"); 358Assert.Equal("Why use Aspire?", overview.Sections[0].Heading); 359Assert.Equal("Getting started", overview.Sections[1].Heading); 367Assert.Equal("Configuration", serviceDefaults.Sections[0].Heading); 471var h2Sections = doc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 475var h3Sections = doc.Sections.Where(s => s.Level == 3).Select(s => s.Heading).ToList(); 504Assert.Equal("Real Section", doc.Sections[0].Heading); 519Assert.Equal("Getting Started", doc.Sections[0].Heading); 573var h2Sections = certificatesDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 592var h2Sections = appHostConfigDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 608var h2Sections = dockerComposeDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 624var h2Sections = eventingDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 631var h3Sections = eventingDoc.Sections.Where(s => s.Level == 3).Select(s => s.Heading).ToList();