3 writes to Sections
aspire (1)
Documentation\Docs\LlmsTxtParser.cs (1)
371
Sections
= sections
Aspire.Cli.Tests (2)
Mcp\Docs\DocsCacheTests.cs (2)
65
Sections
= [],
78
Sections
= [],
34 references to Sections
aspire (4)
Documentation\Docs\DocsIndexService.cs (4)
438
var matchedSection = doc.Source.
Sections
.FirstOrDefault(s =>
457
Sections = [.. doc.Source.
Sections
.Select(static s => s.Heading)]
526
matchedSection = doc.Source.
Sections
[i].Heading;
1120
Sections = [.. source.
Sections
.Select(static s => new IndexedSection(s))];
Aspire.Cli.Tests (30)
Mcp\Docs\LlmsTxtParserTests.cs (30)
108
Assert.Equal(3, doc.
Sections
.Count);
110
Assert.Equal("Section One", doc.
Sections
[0].Heading);
111
Assert.Equal(2, doc.
Sections
[0].Level);
113
Assert.Equal("Section Two", doc.
Sections
[1].Heading);
114
Assert.Equal(2, doc.
Sections
[1].Level);
116
Assert.Equal("Subsection", doc.
Sections
[2].Heading);
117
Assert.Equal(3, doc.
Sections
[2].Level);
139
var parentSection = doc.
Sections
.First(s => s.Heading == "Parent Section");
459
Assert.Equal(2, overview.
Sections
.Count);
460
Assert.Equal("Why use Aspire?", overview.
Sections
[0].Heading);
461
Assert.Equal("Getting started", overview.
Sections
[1].Heading);
468
Assert.Single(serviceDefaults.
Sections
);
469
Assert.Equal("Configuration", serviceDefaults.
Sections
[0].Heading);
602
var h2Sections = doc.
Sections
.Where(s => s.Level == 2).Select(s => s.Heading).ToList();
606
var h3Sections = doc.
Sections
.Where(s => s.Level == 3).Select(s => s.Heading).ToList();
634
Assert.Single(doc.
Sections
);
635
Assert.Equal("Real Section", doc.
Sections
[0].Heading);
636
Assert.Equal(2, doc.
Sections
[0].Level);
649
Assert.Single(doc.
Sections
);
650
Assert.Equal("Getting Started", doc.
Sections
[0].Heading);
701
Assert.True(certificatesDoc.
Sections
.Count > 0, "Certificate doc should have sections");
704
var h2Sections = certificatesDoc.
Sections
.Where(s => s.Level == 2).Select(s => s.Heading).ToList();
711
var h3Sections = certificatesDoc.
Sections
.Where(s => s.Level == 3).ToList();
721
Assert.True(appHostConfigDoc.
Sections
.Count > 0, "AppHost config doc should have sections");
723
var h2Sections = appHostConfigDoc.
Sections
.Where(s => s.Level == 2).Select(s => s.Heading).ToList();
737
Assert.True(dockerComposeDoc.
Sections
.Count > 0, "Docker Compose doc should have sections");
739
var h2Sections = dockerComposeDoc.
Sections
.Where(s => s.Level == 2).Select(s => s.Heading).ToList();
753
Assert.True(eventingDoc.
Sections
.Count > 0, "Eventing doc should have sections");
755
var h2Sections = eventingDoc.
Sections
.Where(s => s.Level == 2).Select(s => s.Heading).ToList();
762
var h3Sections = eventingDoc.
Sections
.Where(s => s.Level == 3).Select(s => s.Heading).ToList();