55using System . IO . Abstractions ;
66using System . IO . Compression ;
77using System . Text ;
8+ using Elastic . Documentation . Configuration ;
89using Elastic . Documentation . Configuration . Builder ;
910using Elastic . Markdown . Helpers ;
1011using Elastic . Markdown . Myst . Renderers . LlmMarkdown ;
@@ -45,7 +46,7 @@ public ValueTask<bool> FinishExportAsync(IDirectoryInfo outputFolder, Cancel ctx
4546
4647 public async ValueTask < bool > ExportAsync ( MarkdownExportFileContext fileContext , Cancel ctx )
4748 {
48- var llmMarkdown = ConvertToLlmMarkdown ( fileContext . Document , fileContext ) ;
49+ var llmMarkdown = ConvertToLlmMarkdown ( fileContext . Document , fileContext . BuildContext ) ;
4950 var outputFile = GetLlmOutputFile ( fileContext ) ;
5051 if ( outputFile . Directory is { Exists : false } )
5152 outputFile . Directory . Create ( ) ;
@@ -59,8 +60,8 @@ await fileContext.SourceFile.SourceFile.FileSystem.File.WriteAllTextAsync(
5960 return true ;
6061 }
6162
62- public static string ConvertToLlmMarkdown ( MarkdownDocument document , MarkdownExportFileContext context ) =>
63- DocumentationObjectPoolProvider . UseLlmMarkdownRenderer ( context . BuildContext , renderer =>
63+ public static string ConvertToLlmMarkdown ( MarkdownDocument document , BuildContext context ) =>
64+ DocumentationObjectPoolProvider . UseLlmMarkdownRenderer ( context , renderer =>
6465 {
6566 _ = renderer . Render ( document ) ;
6667 } ) ;
0 commit comments