MarkdownContentOptions
Pennington.Infrastructure
Options for a markdown content source.
Properties
BasePageUrlstring- URL prefix prepended to routes generated from this source.
ContentPathstring- Filesystem path to the directory containing markdown files.
ExcludePathsImmutableArray<string>- Relative subpaths (from
ContentPath) to skip during discovery and content copying. Set this on a broad catch-all source to carve out a subtree that is owned by a more specific markdown source registered nearby. SeeMarkdownContentServiceOptions.ExcludePathsfor matching semantics. ReserveNotFoundPagebool- When true, a content-root
404.mdis reserved as the not-found body: skipped during discovery so it never becomes a routable page or a nav/sitemap/search/llms entry. Host templates render it on demand as the 404 page. SeeMarkdownContentServiceOptions.ReserveNotFoundPage. SectionLabelstring- Default section label applied when front matter does not specify one.
Pennington.Infrastructure.MarkdownContentOptions
namespace Pennington.Infrastructure;
/// Options for a markdown content source.
public class MarkdownContentOptions
{
/// URL prefix prepended to routes generated from this source.
public string BasePageUrl { get; set; }
/// Filesystem path to the directory containing markdown files.
public string ContentPath { get; set; }
/// Relative subpaths (from ContentPath) to skip during discovery and content copying. Set this on a broad catch-all source to carve out a subtree that is owned by a more specific markdown source registered nearby. See MarkdownContentServiceOptions.ExcludePaths for matching semantics.
public ImmutableArray<string> ExcludePaths { get; set; }
/// When true, a content-root 404.md is reserved as the not-found body: skipped during discovery so it never becomes a routable page or a nav/sitemap/search/llms entry. Host templates render it on demand as the 404 page. See MarkdownContentServiceOptions.ReserveNotFoundPage.
public bool ReserveNotFoundPage { get; set; }
/// Default section label applied when front matter does not specify one.
public string SectionLabel { get; set; }
}