Adham
11/30/2023, 11:47 AMtasks.withType(DokkaTask.class).configureEach {
dokkaSourceSets {
named("main") {
moduleName.set("mkplayer")
moduleVersion.set("$mkplayer_version")
includes.from("../docsDokka/src/mkplayersdk.md")
outputDirectory.set(file("../docsDokka/src/tempOutput/html"))
}
}
String dokkaBaseConfiguration = """
{
"footerMessage": "(c) Player SDK for Android. All rights reserved."
}
"""
pluginsMapConfiguration.set(
["org.jetbrains.dokka.base.DokkaBase": dokkaBaseConfiguration]
)
}
Installation
• Operating system: macOS
• Build tool: Gradle v8.3.0
• Dokka version: 1.9.10
Screenshots
when moduleName is same, data from 'playersdk.md' is shown
moduleName.set("mkplayer")
when moduleName is different, data from 'playersdk.md' is not shown
moduleName.set("Player SDK for Android")CLOVIS
11/30/2023, 1:36 PMmoduleName
should be exactly what you use in the # Module <moduleName>
at the top of the markdown file.
For example, here I wanted to have a complex name, so the markdown file follows the same name.
However, I'm using Dokkatoo and not Dokka directly so I'm not 100% sure it's the same thing.Adham
11/30/2023, 2:05 PMCLOVIS
11/30/2023, 2:06 PMAdham
11/30/2023, 2:11 PMGradle
(visible in the sidebar), while the displayed name is Kotlin DSL Reference for Gradle
.CLOVIS
11/30/2023, 2:12 PMAdham
11/30/2023, 2:13 PMOleg Yukhnevich
01/02/2024, 12:12 PMKotlin DSL Reference for Gradle
on page (on the right side) comes from Module.md
(source) + they hide original module name via css
styles (source)
2. Kotlin DSL Reference for Gradle
in header comes from 'a little hack' in CSS where they prefix header name with additional text (source) - most likely it's possible to fully replace text in header in the same way