https://kotlinlang.org logo
Title
m

Marcus Cvjeticanin

03/14/2023, 12:26 AM
I'm trying to customize the content of the generated HTML of a multi module project but this task does not apply it for some reason (I've added the plugins and everything else works except this one I put in the root of the gradle.build.kts):
tasks.withType<DokkaTask>().configureEach {
    pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
        customAssets = listOf(file("logo.png"))
        customStyleSheets = listOf(file("my-styles.css"))
        footerMessage = "(c) 2022-2023 Project"
        separateInheritedMembers = false
        templatesDir = file("dokka/templates")
        mergeImplicitExpectActualDeclarations = false
    }
}
i

Ignat Beresnev

03/14/2023, 1:42 AM
Try to change
DokkaTask
to
DokkaTaskPartial
and apply it for all subprojects It's explained to a degree here: https://kotlinlang.org/docs/dokka-gradle.html#multi-project-configuration
m

Marcus Cvjeticanin

03/14/2023, 9:22 AM
Sweet! Thanks for that. I must have missed it yesterday for some strange reason.