Microsoft.DocAsCode.Build.Engine.SingleDocumentBuilder.FeedOptions C# (CSharp) Method

FeedOptions() private method

private FeedOptions ( List manifest, IDocumentBuildContext context ) : void
manifest List
context IDocumentBuildContext
return void
        private void FeedOptions(List<ManifestItemWithContext> manifest, IDocumentBuildContext context)
        {
            Logger.LogVerbose("Feeding options from template...");
            manifest.RunAll(m =>
            {
                if (m.TemplateBundle == null)
                {
                    return;
                }

                using (new LoggerFileScope(m.FileModel.LocalPathFromRoot))
                {
                    Logger.LogDiagnostic($"Feed options from template for {m.Item.DocumentType}...");
                    m.Options = m.TemplateBundle.GetOptions(m.Item, context);
                }
            });
        }