Name Dokka docs after the artifact instead of :lib
Problem
The published API docs on javadoc.io label the module :lib (and the platform-filter chip :lib/main).
Cause
The library is the Gradle module :lib (include("lib")). Dokka defaults its module name and source-set name to the Gradle module path, and no name was set ā so :lib / :lib/main end up in the published -javadoc.jar that javadoc.io hosts.
Fix
Set the Dokka names in lib/build.gradle.kts:
dokka {
moduleName.set("webview-bundle-android")
dokkaSourceSets.configureEach {
displayName.set("android")
}
}
Verification
Regenerated the docs locally (./gradlew :lib:dokkaGeneratePublicationHtml):
- Title / module heading:
webview-bundle-android(was:lib) - Doc URL path:
webview-bundle-android/dev.wvb/⦠- Platform-filter chip:
android(was:lib/main) - No
:libin any visible text node (only the internaldata-filterable-setattribute Dokka's JS uses for filtering, which is never rendered)
Takes effect on the next publish, which javadoc.io re-hosts from Maven Central.
š¤ Generated with Claude Code
https://claude.ai/code/session_01XDfLFUFoRLa9WiyBxSPa3j
Summary by cubic
Update Dokka so the published API docs use the artifact name, not the Gradle module path. Sets moduleName to webview-bundle-android and source-set displayName to android, replacing :lib/:lib/main in the -javadoc.jar and on javadoc.io.