DokkaPackageOptionsSpec

Configuration builder that allows setting some options for specific packages matched by matchingRegex.

Example in Gradle Kotlin DSL:

tasks.dokkaHtml {
dokkaSourceSets.configureEach {
perPackageOption {
matchingRegex.set(".*internal.*")
suppress.set(true)
}
}
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Set of visibility modifiers that should be documented.

Link copied to clipboard
@get:Input
abstract val matchingRegex: Property<String>

Regular expression that is used to match the package.

Link copied to clipboard

Whether to emit warnings about visible undocumented declarations, that is declarations from this package and without KDocs, after they have been filtered by documentedVisibilities.

Link copied to clipboard

Whether to document declarations annotated with Deprecated.

Link copied to clipboard
@get:Input
abstract val suppress: Property<Boolean>

Whether this package should be skipped when generating documentation.

Functions

Link copied to clipboard
open fun documentedVisibilities(vararg visibilities: VisibilityModifier)

Sets documentedVisibilities (overrides any previously set values).