ScriptPostRendererResource

A PostRendererResource that copies the pre-bundled Quarkdown runtime script directory (quarkdown.min.js + source map) next to the HTML output, enabling fully offline rendering.

The script is built once by the bundleTypeScript Gradle task and shipped inside a Quarkdown installation under lib/html/script/. At render time, this resource emits the entire script directory as a FileReferenceOutputArtifact.

If scriptsLayout is null, no script resources are emitted; this keeps script-independent tests easy to construct. Otherwise, the directory must exist — a missing directory indicates a broken Quarkdown installation and raises IllegalStateException.

Parameters

scriptsLayout

the install layout node for the script/ directory, typically com.quarkdown.installlayout.InstallLayout.Html.scripts

Constructors

Link copied to clipboard
constructor(scriptsLayout: InstallLayoutDirectory?)

Properties

Link copied to clipboard

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.