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

PageOrigin Pennington.Pipeline

Where a RenderedPage originated and what metadata is available for it.

Cases

EndpointOrigin EndpointOrigin
Endpoint opted into llms.txt via WithLlmsTxtEntry; the direct URL is the link target and no HTML is captured.
MarkdownOrigin MarkdownOrigin
Origin information for a RenderedPage: the page came from a markdown source (carrying a ParsedItem with front matter + derived metadata) or from an endpoint opt-in (LlmsTxtEndpointExtensions) where the link target is the endpoint URL itself and no HTML is fetched. Razor / programmatic sources carry no origin metadata; see Origin.

Properties

Value object
Wrapped case instance; inspect via pattern matching on the case types.

Constructors

PageOrigin

#
public PageOrigin(MarkdownOrigin value)

Wraps a MarkdownOrigin.

Parameters

value MarkdownOrigin

PageOrigin

#
public PageOrigin(EndpointOrigin value)

Wraps an EndpointOrigin.

Parameters

value EndpointOrigin

Pennington.Pipeline.PageOrigin

namespace Pennington.Pipeline;

/// Where a RenderedPage originated and what metadata is available for it.
public struct PageOrigin
{
    /// Endpoint opted into llms.txt via WithLlmsTxtEntry; the direct URL is the link target and no HTML is captured.
    
public record EndpointOrigin(string DirectUrl) : object, IEquatable<EndpointOrigin>
/// Origin information for a RenderedPage: the page came from a markdown source (carrying a ParsedItem with front matter + derived metadata) or from an endpoint opt-in (LlmsTxtEndpointExtensions) where the link target is the endpoint URL itself and no HTML is fetched. Razor / programmatic sources carry no origin metadata; see Origin.
public record MarkdownOrigin(ParsedItem Parsed) : object, IEquatable<MarkdownOrigin>
/// Wraps a MarkdownOrigin.
public PageOrigin(MarkdownOrigin value)
; /// Wraps an EndpointOrigin.
public PageOrigin(EndpointOrigin value)
; /// Wrapped case instance; inspect via pattern matching on the case types.
public object Value { get; }
}