OutputOptions
Pennington.Generation
Options controlling the static build output: target directory, base URL, and cleanup behavior.
Properties
BaseUrlUrlPath- Base URL the site is deployed under (used to rewrite links in generated HTML).
CleanOutputbool- When true, the output directory is cleared before a build run.
OutputDirectoryFilePath- 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; 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; }
}