private static IModuleList GetModules(FeedsSettings settings) => new ModuleList { new Documents() .FromPipelines(settings.Pipelines), settings.Customization( new GenerateFeeds() .WithRssPath(settings.RssPath) .WithAtomPath(settings.AtomPath) .WithRdfPath(settings.RdfPath) .WithItemDescription((doc, ctx) => doc.String(HtmlKeys.Excerpt)) .WithItemContent((doc, ctx) => doc.Content)), new WriteFiles() };
/// <summary> /// Creates the pipeline. /// </summary> /// <param name="name">The name of this pipeline.</param> /// <param name="settings">The settings for the pipeline.</param> public Feeds(string name, FeedsSettings settings) : base(name, GetModules(settings)) { }