This site provides a machine-readable index at /llms.txt.

Skip to main content Skip to navigation

LlmsTxtOptions Pennington.LlmsTxt

Configuration for llms.txt generation.

Properties

ContentSelector string?
Default: null
CSS selector used to scope the HTML-to-markdown conversion when a page is fetched over HTTP for the LLM channel. Markdown-source pages render via the rendition channel and ignore this setting — this only applies to Razor pages and other non-markdown content where the LlmsTxtService falls back to fetching the live rendered HTML and stripping the layout chrome. Default null means the whole <body> is used. Hosts with a layout shell (e.g. DocSite's #main-content) should set this so navigation, footers, and other chrome don't bleed into the LLM sidecars.
GenerateFullFile bool
Default: false
Whether to also generate llms-full.txt with all content concatenated.
OutputDirectory string
Default: "_llms"
Output directory for raw markdown files (relative to site root). Default: "_llms".

Pennington.LlmsTxt.LlmsTxtOptions

namespace Pennington.LlmsTxt;

/// Configuration for llms.txt generation.
public class LlmsTxtOptions
{
    /// CSS selector used to scope the HTML-to-markdown conversion when a page is fetched over HTTP for the LLM channel. Markdown-source pages render via the rendition channel and ignore this setting — this only applies to Razor pages and other non-markdown content where the LlmsTxtService falls back to fetching the live rendered HTML and stripping the layout chrome. Default null means the whole <body> is used. Hosts with a layout shell (e.g. DocSite's #main-content) should set this so navigation, footers, and other chrome don't bleed into the LLM sidecars.
    
public string? ContentSelector { get; set; }
/// Whether to also generate llms-full.txt with all content concatenated.
public bool GenerateFullFile { get; set; }
/// Output directory for raw markdown files (relative to site root). Default: "_llms".
public string OutputDirectory { get; set; } = "_llms";
}