HI, I have multiplatform modules. My new dokkaPlug...
# dokka
j
HI, I have multiplatform modules. My new dokkaPlugin is generating documentation for it. But I want to have generated documentation only for one platform (for example android). Could you please recommend me which of extension points will be the best one to filter data by source?
i
Have you looked at the docs here? This should give you control to configure per platform. https://kotlin.github.io/dokka/1.4.10.2/user_guide/gradle/usage/#multiplatform
j
thanks
m
Yes, doing it by configuration is possible, but if it is a plugin you can create something like we did for javadoc (
JavadocDocumentableJVMSourceSetFilter
) in
preMergeDocumentableTransformer
:https://github.com/Kotlin/dokka/blob/master/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/transformers/documentables/JavadocDocumentableJVMSourceSetFilter.kt It depends on the cause of a problem that you would like to solve
j
Thanks
Thats exactly what I am looking for
👍 1