androidkotlinkotlin-dokkakdoc

KDoc / Dokka: Ignore inherited methods in subclass


I am generating documentation using KDoc/Dokka for an android library.

I have a custom view, which extends LinearLayout.

The problem is that LinearLayout contains hundreds of public methods. Dokka generates empty documentation for all of these methods, even though I did not use or override them in my own code.

This completely buries any of my own methods and makes the documentation near useless.

How can I prevent dokka from generating documentation for inherited methods?


Solution

  • Currently this is not supported, probably we will add some flag to turn it on/off.

    You can follow this issue: https://github.com/Kotlin/dokka/issues/1501