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 at the same URL with .md appended. 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

MarkdownContentOptions Pennington.Infrastructure

Options for a markdown content source.

Properties

BasePageUrl string
URL prefix prepended to routes generated from this source.
ContentPath string
Filesystem path to the directory containing markdown files.
ExcludePaths ImmutableArray<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. See MarkdownContentServiceOptions.ExcludePaths for matching semantics.
ReserveNotFoundPage bool
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.
SectionLabel string
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; }
}