https://kotlinlang.org logo
#dokka
Title
# dokka
c

Colin White

03/16/2023, 2:01 AM
Is it possible to suppress `equals`/`hashCode`/`toString` for all classes in the generated docs? I’d like to be able to suppress those methods from the docs even if they’re overridden.
suppressInheritedMembers
and
suppressObviousFunctions
only suppress those methods if they’re not overridden
a

Adam S

03/16/2023, 10:56 AM
I can’t find it anywhere in the Dokka documentation, but there is a KDoc
@suppress
tag https://kotlinlang.org/docs/kotlin-doc.html#suppress Based on this issue, I think Dokka supports it: https://github.com/Kotlin/dokka/issues/1612 It’s not so convenient because it requires manually adding it, but if you need something that works today…
🙏 1
c

Colin White

03/16/2023, 10:23 PM
Thanks! That works, though agreed adding
@suppress
to each function isn’t ideal
👍 1
v

Vadim Mishenev

03/20/2023, 11:59 AM
Another solution is to create your own plugin for Dokka. The example is here.
7 Views