Adrian Landborn
05/31/2022, 11:28 AM./gradlew dokkaHtmlMultiModule
?
What I am trying to achieve is to replace the path for the logo. 🧵pluginManager.withPlugin("org.jetbrains.dokka") {
afterEvaluate {
this.tasks.withType(org.jetbrains.dokka.gradle.DokkaMultiModuleTask::class) {
outputDirectory.set(file("documentation/html"))
includes.from("documentation/packages.md")
}
dependencies {
"dokkaHtmlPlugin"("org.jetbrains.dokka:android-documentation-plugin:1.6.21")
}
}
}
Ignat Beresnev
05/31/2022, 12:07 PMlogo-icon.svg
pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
customAssets = listOf(file("logo-icon.svg"))
}
Adrian Landborn
05/31/2022, 12:34 PMpluginManager.withPlugin("org.jetbrains.dokka") {
afterEvaluate {
this.tasks.withType(org.jetbrains.dokka.gradle.DokkaMultiModuleTask::class) {
pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.base.DokkaBase" to """{ "customAssets": ["${file("documentation/logo-icon.svg")}"] }"""))
outputDirectory.set(file("documentation/html"))
includes.from("documentation/packages.md")
}
dependencies {
"dokkaHtmlPlugin"("org.jetbrains.dokka:android-documentation-plugin:1.6.21")
}
}
}
Ignat Beresnev
05/31/2022, 1:11 PM.kts
scripts. For groovy you have to use pluginsMapConfiguration
, unfortunatelyAdrian Landborn
05/31/2022, 1:14 PMIgnat Beresnev
05/31/2022, 1:17 PMpluginsMapConfiguration
is basically for groovy and if you don't want to depend on dokka-base
in your buildscriptsAdrian Landborn
05/31/2022, 1:21 PMIgnat Beresnev
05/31/2022, 1:25 PMDokkaTaskPartial
, but it's configuring DokkaTaskPartial
. Should be just DokkaTask
if you have a single-module projectAdrian Landborn
05/31/2022, 1:29 PMIgnat Beresnev
05/31/2022, 1:30 PMdokka-base
in your buildscript as shown in the gist and the documentation?
buildscript {
dependencies {
classpath("org.jetbrains.dokka:dokka-base:1.6.21")
}
}
Adrian Landborn
05/31/2022, 1:30 PM