HtmlDocumentBuilder

constructor(context: Context, relativePathToRoot: String, sidebarContent: CharSequence)

Parameters

context

the rendering context containing document metadata, attributes, and configuration

relativePathToRoot

the relative path from the current document to the root directory, used to correctly reference shared resources (scripts, themes, etc.)

sidebarContent

the pre-rendered sidebar HTML content (table of contents)