SubdocumentMapperPostRendererResource

Base class for PostRendererResources that emit a single artifact indexing the site's subdocuments, such as sitemap.xml (SitemapPostRendererResource) or llms.txt (LlmsTxtPostRendererResource).

The resource is always skipped in preview mode, when the base URL is unset, or when the document has no subdocuments.

Parameters

context

the context of the document being rendered

Inheritors

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val runsInPreviewMode: Boolean = false

Whether this resource should be included in the output during live preview.

Functions

Link copied to clipboard
open override fun includeTo(resources: MutableSet<OutputResource>, rendered: CharSequence)

Collects resources and adds them to the output set.