I'm also seeing an issue where `protected` propert...
# dokka
n
I'm also seeing an issue where
protected
properties are not rendered, despite the use of
documentedVisibilities.set(setOf(PUBLIC, PROTECTED))
. This simple class renders as follows:
i
Hi! Are you sure the settings are applied where they should be? Can you share your build script?
n
Hey @Ignat Beresnev, you can see my config here.
i
Which task are you using to build documentation?
dokkaHtml
or
dokkaHtmlMultiModule
?
n
The second one.
i
Try changing
tasks.dokkaHtml
to
tasks.dokkaHtmlPartial
then 🙂
n
I get an error saying
tasks.dokkaHtmlPartial
is undefined. You can see i’m using 1.8.10. Also, I think the subprojects were actually creating partials. Here’s what the full output looks like https://nacular.github.io/doodle-api.
i
oh, the
tasks.dokkaHtmlPartial
needs to go into
subproject {}
, not
allprojects {}
, since the root project doesn't have a partial task It's explained in the documentation: https://kotlinlang.org/docs/dokka-gradle.html#multi-project-configuration
n
I had updated to subprojects when I replied above, but that fails with
tasks.dokkaHtmlPartial
as I said. However,
tasks.withType<DokkaTaskPartial>
works! And protected properties seem to get populated correctly. Not sure what’s wrong with my setup that prevents resolution of
dokkaHtmlPartial
. Looks pretty much like the documentation.
👍 1