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

OutputOptions Pennington.Generation

Options controlling the static build output: target directory, base URL, and cleanup behavior.

Properties

BaseUrl UrlPath
Base URL the site is deployed under (used to rewrite links in generated HTML).
CleanOutput bool
When true, the output directory is cleared before a build run.
OutputDirectory FilePath
required
Directory where generated output is written.

Methods

FromArgs

#
public static OutputOptions FromArgs(string[] args)

Parses CLI arguments into OutputOptions, honoring positional and named flag forms.

Parameters

args string[]

Returns

OutputOptions

Pennington.Generation.OutputOptions

namespace Pennington.Generation;

/// Options controlling the static build output: target directory, base URL, and cleanup behavior.
public class OutputOptions
{
    /// Base URL the site is deployed under (used to rewrite links in generated HTML).
    
public UrlPath BaseUrl { get; set; }
/// When true, the output directory is cleared before a build run.
public bool CleanOutput { get; set; }
/// Parses CLI arguments into OutputOptions, honoring positional and named flag forms.
public static OutputOptions FromArgs(string[] args)
; /// Directory where generated output is written.
public FilePath OutputDirectory { get; set; }
}