I pointed the dokka samples directory to my test sources so I could refer test methods with @sample in my documentation and have examples that are tested. This works, except now dokka generates documentation for my tests as well, which is obviously not what I want.
Is there a way to avoid that? I want no trace of my samples or tests in my documentation other than the bits I refer with @sample.
Have you tried excluding the tests with perPackageOptions?
I have had a similar problem with dokkaHtml. The example from here help me. I use:
dokkaSourceSets {
configureEach {
suppressedFiles.from(file("src/main/kotlin/it/suppressedByPath"))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With