Skip to content

Commit e482ec9

Browse files
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents e358b77 + 186fcd5 commit e482ec9

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

build-logic/src/main/kotlin/kotlinx/io/conventions/kotlinx-io-dokka.gradle.kts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,24 @@
33
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENCE file.
44
*/
55

6-
import org.jetbrains.dokka.gradle.DokkaTaskPartial
6+
import org.jetbrains.dokka.gradle.*
77
import java.net.URL
88

99
plugins {
1010
id("org.jetbrains.dokka")
1111
}
1212

13+
// shared configuration for all dokka tasks (both partial and multi-module)
14+
tasks.withType<AbstractDokkaTask>().configureEach {
15+
pluginsMapConfiguration.set(
16+
mapOf(
17+
"org.jetbrains.dokka.base.DokkaBase" to """{ "templatesDir" : "${
18+
rootDir.resolve("dokka-templates")
19+
}"""
20+
)
21+
)
22+
}
23+
1324
tasks.withType<DokkaTaskPartial>().configureEach {
1425
dokkaSourceSets.configureEach {
1526
includes.from("Module.md")

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import kotlinx.validation.ExperimentalBCVApi
88

99
plugins {
1010
id("kotlinx-io-publish") apply false
11+
id("kotlinx-io-dokka")
1112

1213
alias(libs.plugins.kover)
1314
alias(libs.plugins.bcv)
14-
alias(libs.plugins.dokka)
1515
}
1616

1717
allprojects {

dokka-templates/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Dokka's template customization
2+
To provide unified navigation for all parts of [kotlinlang.org](https://kotlinlang.org/),
3+
the Kotlin Website Team uses this directory to place custom templates in this folder
4+
during the website build time on TeamCity.
5+
6+
It is not practical to place these templates in the kotlinx.metadata repository because they change from time to time
7+
and aren't related to the library's release cycle.
8+
9+
The folder is defined as a source for custom templates by the templatesDir property through Dokka's plugin configuration.
10+
11+
[Here](https://kotlinlang.org/docs/dokka-html.html#templates), you can
12+
find more about the customization of Dokka's HTML output.

0 commit comments

Comments
 (0)