Kotlin / dokka

API documentation engine for Kotlin
https://kotl.in/dokka
Apache License 2.0
3.45k stars 410 forks source link

Remove the dependency of `dokkaGenerate` on `dokkaGenerateModule*` #3920

Closed whyoleg closed 3 days ago

whyoleg commented 1 week ago

dokkaGenerate is a lifecycle task, and should only trigger tasks that produce Dokka Publications.

Currently dokkaGenerate also triggers Dokka Module tasks, but this is unnecessary for single-module projects, which do not need to generate 'partial' Dokka Modules, because Dokka can generate them directly into a Publication.

Avoiding trigging the Dokka Module tasks will help with performance.

adam-enko commented 3 days ago

@whyoleg I'll leave it up to you to decide if another reviewer is needed, and to push the 'merge' button.