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

LinkAuditor Pennington.Generation

IRenderedAuditor that fetches each TOC page through the live pipeline and runs LinkVerificationService over its rendered HTML, surfacing broken internal links in the dev overlay (per page) and the build report.

Properties

Code string
Stable identifier surfaced on every diagnostic this auditor emits.

Constructors

LinkAuditor

#
public LinkAuditor(IEnumerable<IContentService> contentServices, IEnumerable<IArtifactContentService> artifactServices, EndpointDataSource endpointDataSource, OutputOptions outputOptions, IWebHostEnvironment environment)

Wires the auditor to the content discovery surface, the artifact tier, the endpoint table, the output options, and the host environment (for wwwroot/RCL assets).

Parameters

contentServices IEnumerable<IContentService>
artifactServices IEnumerable<IArtifactContentService>
endpointDataSource EndpointDataSource
outputOptions OutputOptions
environment IWebHostEnvironment

Methods

AuditAsync

#
public Task<IReadOnlyList<BuildDiagnostic>> AuditAsync(RenderedAuditContext context, CancellationToken cancellationToken)

Runs the auditor against context and returns its diagnostics.

Parameters

context RenderedAuditContext
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<BuildDiagnostic>>

Pennington.Generation.LinkAuditor

namespace Pennington.Generation;

/// IRenderedAuditor that fetches each TOC page through the live pipeline and runs LinkVerificationService over its rendered HTML, surfacing broken internal links in the dev overlay (per page) and the build report.
public class LinkAuditor
{
    /// Runs the auditor against context and returns its diagnostics.
    
public Task<IReadOnlyList<BuildDiagnostic>> AuditAsync(RenderedAuditContext context, CancellationToken cancellationToken)
; /// Stable identifier surfaced on every diagnostic this auditor emits.
public string Code { get; }
/// Wires the auditor to the content discovery surface, the artifact tier, the endpoint table, the output options, and the host environment (for wwwroot/RCL assets).
public LinkAuditor(IEnumerable<IContentService> contentServices, IEnumerable<IArtifactContentService> artifactServices, EndpointDataSource endpointDataSource, OutputOptions outputOptions, IWebHostEnvironment environment)
; }