using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Scriban; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Volo.Abp; using Volo.Abp.ObjectMapping; using Volo.Docs.Documents.Rendering; using Volo.Extensions; namespace Volo.Docs.HtmlConverting { public class ScribanWebDocumentSectionRenderer : ScribanDocumentSectionRenderer, IWebDocumentSectionRenderer { private IObjectMapper ObjectMapper { get; set; } public Task GetDocumentNavigationsAsync(string documentContent) { return GetSectionAsync(documentContent, DocsNav); } public async Task> GetPartialTemplatesInDocumentAsync( string documentContent) { var templates = new List(); foreach (var section in DocsJsonSections) { templates.AddRange(await section.GetPartialTemplatesInDocumentAsync(documentContent)); } return templates; } } }