BuildReport
Pennington.Generation
Aggregated result of a static build run, including diagnostics and per-page outcomes.
Properties
DiagnosticsImmutableList<BuildDiagnostic>- Diagnostics recorded during the build.
DurationTimeSpan- Total wall-clock duration of the build.
FailedPagesImmutableList<ContentRoute>- Routes whose generation failed.
GeneratedPagesImmutableList<ContentRoute>- Routes that were successfully written to the output directory.
HasErrorsbool- True when the build produced any error diagnostics, broken links, or failed pages.
SkippedPagesImmutableList<ContentRoute>- Routes that were skipped (typically drafts).
TotalPagesint- Total number of pages considered, including generated, skipped, and failed.
Constructors
BuildReport
#public BuildReport(ImmutableList<BuildDiagnostic> diagnostics, ImmutableList<ContentRoute> generatedPages, ImmutableList<ContentRoute> skippedPages, ImmutableList<ContentRoute> failedPages, TimeSpan duration)
Initializes a completed build report with all captured results.
Parameters
diagnosticsImmutableList<BuildDiagnostic>generatedPagesImmutableList<ContentRoute>skippedPagesImmutableList<ContentRoute>failedPagesImmutableList<ContentRoute>durationTimeSpan
Methods
Pennington.Generation.BuildReport
namespace Pennington.Generation;
/// Aggregated result of a static build run, including diagnostics and per-page outcomes.
public class BuildReport
{
/// Initializes a completed build report with all captured results.
public BuildReport(ImmutableList<BuildDiagnostic> diagnostics, ImmutableList<ContentRoute> generatedPages, ImmutableList<ContentRoute> skippedPages, ImmutableList<ContentRoute> failedPages, TimeSpan duration)
;
/// Diagnostics recorded during the build.
public ImmutableList<BuildDiagnostic> Diagnostics { get; }
/// Total wall-clock duration of the build.
public TimeSpan Duration { get; }
/// Routes whose generation failed.
public ImmutableList<ContentRoute> FailedPages { get; }
/// Routes that were successfully written to the output directory.
public ImmutableList<ContentRoute> GeneratedPages { get; }
/// True when the build produced any error diagnostics, broken links, or failed pages.
public bool HasErrors { get; }
/// Routes that were skipped (typically drafts).
public ImmutableList<ContentRoute> SkippedPages { get; }
/// Returns the human-readable summary as a single formatted string.
public string ToFormattedString()
;
/// Total number of pages considered, including generated, skipped, and failed.
public int TotalPages { get; }
/// Writes a human-readable summary of the report to writer.
public void WriteTo(TextWriter writer)
;
}