Is there a way to have dokka omit certain things? ...
# dokka
d
Is there a way to have dokka omit certain things? For example I have a Kotlin data class that gets documented but I would like to omit one of its properties from the generated documentation.
1
l
If you are using it for Android, hide and suppress annotations https://kotlin.github.io/dokka/1.5.0/user_guide/android-plugin/android-plugin/#features work.
👍 1
m
Using a suppress / hide annotation is one, but if you are don’t have it you can create a dokka plugin with documentable filter to filter out this / those values. Something like we do here: https://github.com/Kotlin/dokka/blob/master/plugins/android-documentation/src/main/kotlin/transformers/HideTagDocumentableFilter.kt
👍 1
d
I see suppress keeps the data class field from showing up in the generated properties doc but the field is still displayed as part of the class's generated constructor doc 🤔