So this problem might be a bit of a corner case, b...
# dokka
c
So this problem might be a bit of a corner case, but I’m wondering if it is supported by Dokka: I have created a Kotlin specific library with a bunch of extension methods for a normal Android library. The base library is included as a
provided
dependency. Now I want to generate KDoc files for only my extension methods, but It doesn’t look possible without getting a lot of errors about missing types and the resulting Doc looks like this
fun <E> <ERROR CLASS>.where(clazz: KClass<E>): <ERROR CLASS><E>
. Is there a way to generate the KDoc for only my extension method and still show the class names?
s
chrmelchior: Are you using gradle for build?
c
Yes
s
You can create additional subproject, which will depend on your main library project, and set
sourceDirs = files('<your_extension_files_location>')
in dokka task there