Lee McLaughlin
02/15/2021, 9:14 PMdokkaHtml {
outputDirectory.set(new File(buildDir, "docs/htmldocs"))
dokkaSourceSets {
named("main") {
includeNonPublic.set(false)
// Emit warnings about not documented members. Applies globally, also can be overridden by packageOptions
reportUndocumented.set(true)
packageOptions {
prefix.set("health.waire.sdk.cdetect.internal")
// will match health.waire.sdk.cdetect.internal.bluetooth and all sub-packages of it
suppress.set(true)
}
// Allows to customize documentation generation options on a per-package basis
// Repeat for multiple packageOptions
perPackageOption {
prefix.set("health.waire.sdk.cdetect.internal") // will match kotlin and all sub-packages of it
suppress.set(true)
}
}
}
}
Mike Penz
02/15/2021, 9:41 PM.*
A thing which works in my project is to exclude all internal packages like this:
perPackageOption {
matchingRegex.set(".*\\.internal.*") // will match all .internal packages and sub-packages
suppress.set(true)
}
Lee McLaughlin
02/15/2021, 10:59 PM