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

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 Pennington.Routing.UrlPath
Default: new("/")
Base URL the site is deployed under (used to rewrite links in generated HTML).
CleanOutput bool
Default: true
When true, the output directory is cleared before a build run.
OutputDirectory Pennington.Routing.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; init; } = new("/");
/// When true, the output directory is cleared before a build run.
public bool CleanOutput { get; init; } = true;
/// Parses CLI arguments into OutputOptions, honoring positional and named flag forms.
public static OutputOptions FromArgs(string[] args);
/// Directory where generated output is written.
public required FilePath OutputDirectory { get; init; }
}