OutputOptions Pennington.Generation
Options controlling the static build output: target directory, base URL, and cleanup behavior.
Properties
BaseUrlPennington.Routing.UrlPath- Default:
new("/")Base URL the site is deployed under (used to rewrite links in generated HTML). CleanOutputbool- Default:
trueWhen true, the output directory is cleared before a build run. OutputDirectoryPennington.Routing.FilePath- requiredDirectory 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
argsstring[]
Returns
OutputOptionsPennington.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; }
}