File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed
build-logic/src/main/kotlin/kotlinx/io/conventions Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 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.*
77import java.net.URL
88
99plugins {
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+
1324tasks.withType<DokkaTaskPartial >().configureEach {
1425 dokkaSourceSets.configureEach {
1526 includes.from(" Module.md" )
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ import kotlinx.validation.ExperimentalBCVApi
88
99plugins {
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
1717allprojects {
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments