GenerateFeeds Class

Summary

Generates syndication feeds including RSS, Atom, and RDF.
Assembly
Wyam.Feeds.dll
Namespace
Wyam.Feeds
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IModule"] click Interface0 "/api/Wyam.Common.Modules/IModule" Type["GenerateFeeds"] class Type type-node

Syntax

public class GenerateFeeds : IModule

Remarks

Each input document represents an item in the feed, up to the specified maximum number of documents. Note that documents will be used in the order in which they are input into this module, so a OrderBy module or similar should be used to order the documents prior to this module. You should also set the
Settings.Host
value in your configuration file since that's used to create the absolute links for feed readers. This module outputs a document for each of the selected feed types. Input documents are not output by this module.

Fields

Name Constant Value Summary
DefaultAtomPath
The default path for Atom files.
static
DefaultRdfPath
The default path for RDF files.
static
DefaultRssPath
The default path for RSS files.
static

Methods

Name Value Summary
Execute(IReadOnlyList<IDocument>, IExecutionContext) IEnumerable<IDocument>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
MaximumItems(int) GenerateFeeds
Sets how many items the feed will contain. The default value is 20. Note that documents will be used in the order in which they are input into this module, so a OrderBy module or similar should be used to order the documents prior to this module.
WithAtomPath(ContextConfig) GenerateFeeds
Sets the path to the generated Atom file. The default behavior is to generate a RSS feed with a path of "feed.atom".
WithFeedAuthor(ContextConfig) GenerateFeeds
Sets the feed author. The default value is the value for the "Author" key in the global metadata.
WithFeedCopyright(ContextConfig) GenerateFeeds
Sets the feed copyright. The default value is the value for the "Copyright" key in the global metadata.
WithFeedDescription(ContextConfig) GenerateFeeds
Sets the feed description. The default value is the value for the "Description" key in the global metadata.
WithFeedId(ContextConfig) GenerateFeeds
Sets the feed identifier. The default value is a link to the site.
WithFeedImageLink(ContextConfig) GenerateFeeds
Sets the feed image link. The default value is the value for the "Image" key in the global metadata.
WithFeedLink(ContextConfig) GenerateFeeds
Sets the feed image link. The default value is the site link.
WithFeedPublished(ContextConfig) GenerateFeeds
Sets the feed published time. The default value is the current UTC time.
WithFeedTitle(ContextConfig) GenerateFeeds
Sets the feed title. The default value is the value for the "Title" key in the global metadata.
WithFeedUpdated(ContextConfig) GenerateFeeds
Sets the feed updated time. The default value is the current UTC time.
WithItemAuthor(DocumentConfig) GenerateFeeds
Sets the item author. The default value is the value for the "Author" key in the input document.
WithItemContent(DocumentConfig) GenerateFeeds
Sets the content of the item. The default value is the value for the "Content" key in the input document. Note that the entire document content is not used because it will most likely contain layout, scripts, and other code that shouldn't be part of the feed item.
WithItemDescription(DocumentConfig) GenerateFeeds
Sets the item description. The default value is the value for the "Description" key in the input document.
WithItemId(DocumentConfig) GenerateFeeds
Sets the item identifier. The default value is the absolute link to the input document.
WithItemImageLink(DocumentConfig) GenerateFeeds
Sets the item image link. The default value is the value for the "Image" key in the input document.
WithItemLink(DocumentConfig) GenerateFeeds
Sets the item link. The default value is the absolute link to the input document.
WithItemPublished(DocumentConfig) GenerateFeeds
Sets the item published time. The default value is the value for the "Published" key in the input document.
WithItemThreadCount(DocumentConfig) GenerateFeeds
Sets the item thread count. By default, no thread count is specified.
WithItemThreadLink(DocumentConfig) GenerateFeeds
Sets the item thread link. By default, no thread link is specified.
WithItemThreadUpdated(DocumentConfig) GenerateFeeds
Sets the item thread updated. By default, no thread updated time is specified.
WithItemTitle(DocumentConfig) GenerateFeeds
Sets the item title. The default value is the value for the "Title" key in the input document.
WithItemUpdated(DocumentConfig) GenerateFeeds
Sets the item updated time. The default value is the value for the "Updated" key in the input document.
WithRdfPath(ContextConfig) GenerateFeeds
Sets the path to the generated RDF file. The default behavior is not to generate a RDF feed.
WithRssPath(ContextConfig) GenerateFeeds
Sets the path to the generated RSS file. The default behavior is to generate a RSS feed with a path of "feed.rss".
GitHub