Hey everyone! I am not sure how to search thing up.. But consider that I have a class as follows:
Copy code
/**
* This is some example class
* @constructor this is how i describe my primary constructor
* @property property1 docs for prop1
* @property property2 docs for prop2
*/
class Example(
private val property1: Int,
private val property2: Int
) {...}
Now my issue is that since property1 and property2 are both private, they do not show up in the dokka HTML generated documentation. I looked up how I could change the Gradle build configuration to say that I should include
private
visibility. However, it would enable that for the whole project, which I do not want to. How do I make dokka know to show the documentation for the private properties just for this
Example
class?
j
jw
05/26/2024, 10:47 PM
Seems like you want
@parameter
➕ 1
n
Nishant Aanjaney Jalan
05/27/2024, 12:13 PM
Oh, that's perfect! I didn't even think of it. Thank you!