Thanks, now I all my images are collected in
root/build/dokka/htmlMultiModule/images/doc-images/
// not nice, but working without manually re-enter all projects again
tasks.dokkaHtmlMultiModule { // root tasks in build.gradle.kts
includes.from("README.md")
pluginConfiguration<org.jetbrains.dokka.base.DokkaBase, org.jetbrains.dokka.base.DokkaBaseConfiguration> {
customAssets = subprojects.map { "${it.path.drop(1).replace(":", "/")}/docImages/" }.mapNotNull {
File("${project.projectDir.path}/$it").takeIf { it.exists() }
}
}
}
But it looks like, I have to change the paths in the Readme files too, right? This would mean, it is not possible to see the images in the readme viewer in Intellij/GitHub.
In theory, it would be perfect, if Dokka will prefix all images paths with "/images".