register

open override fun <T : WithChildren<*>> register(nodeType: KClass<T>, mapper: (T) -> WithChildren<*>): DocumentationMapper

Registers a mapper for a specific type of documentation node.

Return

this instance for chaining

Parameters

nodeType

the type of the documentation node to register the mapper for

mapper

the mapper function to apply to the documentation node