This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

FileContentServiceOptions Pennington.Content

Configuration for a FileContentService — the discovery source for a custom file format registered via AddContentFormat.

Properties

BasePageUrl UrlPath
URL prefix prepended to routes generated from this content directory.
ContentPath FilePath
required
Filesystem path to the directory containing the format's source files.
ExcludePaths ImmutableArray<string>
Relative paths (forward-slash, from ContentPath) whose subtrees are skipped during discovery. Matching is case-insensitive and segment-based.
FilePattern string
Glob pattern used to enumerate source files (for example *.cook).
Format string
required
Format key stamped onto discovered items, selecting the parser and renderer.
SearchPriority int
Relative ordering priority for this source's entries in the search index.
SectionLabel string
Default section label applied to entries when front matter doesn't specify one.

Pennington.Content.FileContentServiceOptions

namespace Pennington.Content;

/// Configuration for a FileContentService — the discovery source for a custom file format registered via AddContentFormat.
public class FileContentServiceOptions
{
    /// URL prefix prepended to routes generated from this content directory.
    
public UrlPath BasePageUrl { get; set; }
/// Filesystem path to the directory containing the format's source files.
public FilePath ContentPath { get; set; }
/// Relative paths (forward-slash, from ContentPath) whose subtrees are skipped during discovery. Matching is case-insensitive and segment-based.
public ImmutableArray<string> ExcludePaths { get; set; }
/// Glob pattern used to enumerate source files (for example *.cook).
public string FilePattern { get; set; }
/// Format key stamped onto discovered items, selecting the parser and renderer.
public string Format { get; set; }
/// Relative ordering priority for this source's entries in the search index.
public int SearchPriority { get; set; }
/// Default section label applied to entries when front matter doesn't specify one.
public string SectionLabel { get; set; }
}