Reputation: 1869
Is there a way to add a piece of top level KDoc for a Kotlin file?
Since Kotlin supports multiple variables, functions, classes, etc. in a single file, it makes sense to document the file as a whole. However, Documenting Kotlin Code - Kotlin Programming Language seems not to have any instructions on this.
Upvotes: 13
Views: 1182
Reputation: 2463
There's no such feature; however, packages and modules can be documented like in Java
In Dokka, additional documentation files are added with include
property (e.g. Gradle configuration).
Upvotes: 1