Skip to content

Commit 69b7055

Browse files
Update src/Elastic.Markdown/Exporters/LlmMarkdownExporter.cs
Co-authored-by: Jan Calanog <[email protected]>
1 parent a875ce4 commit 69b7055

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Elastic.Markdown/Exporters/LlmMarkdownExporter.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,7 @@ public async ValueTask<bool> ExportAsync(MarkdownExportFileContext fileContext,
7474
if (outputFile.Directory is { Exists: false })
7575
outputFile.Directory.Create();
7676

77-
string content;
78-
if (IsRootIndexFile(fileContext))
79-
{
80-
// Use template for root llms.txt file
81-
content = LlmsTxtTemplate;
82-
}
83-
else
84-
{
85-
// Regular markdown files get metadata + content
86-
content = CreateLlmContentWithMetadata(fileContext, llmMarkdown);
87-
}
77+
var content = IsRootIndexFile(fileContext) ? LlmsTxtTemplate : CreateLlmContentWithMetadata(fileContext, llmMarkdown);
8878

8979
await fileContext.SourceFile.SourceFile.FileSystem.File.WriteAllTextAsync(
9080
outputFile.FullName,

0 commit comments

Comments
 (0)