Has anyone got asset customization for `dokkaHtml`...
# dokka
a
Has anyone got asset customization for
dokkaHtml
to work? Following the docs (https://kotlin.github.io/dokka/1.4.20/user_guide/gradle/usage/#applying-plugins), I tried this in my build.kts:
Copy code
plugins { id("org.jetbrains.dokka") version "1.4.20" }
tasks.dokkaHtml {
    pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
        customStyleSheets = listOf(file("my-stylesheet.css"))
    }
}
But
DokkaBase
and
DokkaBaseConfiguration
don't resolve. Are the docs wrong, or am I misunderstanding them?
m
Do you have the base plugin added to the classpath?
a
Are you referring to
"org.jetbrains.dokka"
? I don't see the term "base plugin" in the docs anywhere, but I might be missing it.
Ah, it looks like adding this works:
Copy code
buildscript {
    dependencies {
        classpath("org.jetbrains.dokka:dokka-base:1.4.20")
    }
}
I wonder why that's not mentioned in the docs.
k
a
That section is where I found
pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {...}
(you can see that same link in the original question), but it doesn't mention
:dokka-base
at all, which is the problem that caused this thread.