:rocket: <https://github.com/Kotlin/dokka/releases...
# dokka
o
🚀 Dokka 2.1.0 release is out! 🚀 This version focuses on stabilizing experimental features, supporting new Kotlin language features, and improving the user experience. Key highlights include: • Dokka Gradle Plugin v2 is now enabled by default! • K2 Analysis is enabled by default! • Support for Context parameters and Nested typealiases • HTML format refinement: better accessibility and consistency across all components • Multiple performance and compatibility improvements We would really appreciate your feedback! kodee loving
🎉 8
kodee happy 6
o
Dokka ❤️ is finally coming to TestBalloon testballoon! I'll try to document my impressions as a first-time Dokka user on a multi-module project: • The docs have that v2 notice at the top, but then seem to be based on v1. Could this be explicitly stated? • Even better, could there be a full v2 doc instead of having to pick sections from the migration docs? • Most Dokka Gradle tasks are grouped under "other". For a better DX, could all user-facing tasks like
dokkaGeneratePublicationHtml
be grouped under "dokka"? • In "Tools Dokka>", it seems that when starting with v2, I have to ignore everything but the v2 sections in "Migrate to Dokka Gradle plugin v2". Is that correct?
❤️ 1
Another observation: • examples/gradle-v2 still contains the now obsolete Gradle property enabling v2 mode That's it from me so far. Hope this was helpful.
And it seems I have found a 🐛.
thank you color 1
🫣 1
o
Even better, could there be a full v2 doc instead of having to pick sections from the migration docs?
Yes, sure! We are currently working on revamping the documentation based on v2!
Most Dokka Gradle tasks are grouped under "other". For a better DX, could all user-facing tasks like
dokkaGeneratePublicationHtml
be grouped under "dokka"?
AFAIK, this was a deliberate choice to hide some tasks, so that it will be much more obvious which task to run from the Gradle IDE window. Curious, why do you want to know the specific task name,
dokkaGeneratePublicationHtml,
and not just
dokkaGenerateHtml
?
In "Tools Dokka>", it seems that when starting with v2, I have to ignore everything but the v2 sections in "Migrate to Dokka Gradle plugin v2". Is that correct?
Yes, and after, we will update the documentation for v2, everything should be more obvious. That's our bad, that we were not able to sync the whole documentation update for v2, and we will try to do better next time. At this point, Migrate to Dokka Gradle plugin v2 should contain all the information needed to setup Dokka with v2 plugin.
examples/gradle-v2 still contains the now obsolete Gradle property enabling v2 mode
Thanks! Yeah, we should just remove them now, probably just an oversight after we flipped the default - https://github.com/Kotlin/dokka/issues/4316
Great thanks for the feedback!
o
Curious, why do you want to know the specific task name,
dokkaGeneratePublicationHtml,
and not just
dokkaGenerateHtml
?
The docs were pointing me to this task. Now that I know more, I would no longer consider using
dokkaGeneratePublicationHtml
. So it was just my state of mind at this point of diving into Dokka. But I thought it would be useful to let you know and I can be a canary only once. 😉