blob: b3c52a0ab010aa89870738b38412eb2062de4990 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import org.jetbrains.dokkaVersionType
import org.jetbrains.DokkaVersionType
plugins {
id("ru.vyarus.mkdocs") version "2.3.0"
}
if (dokkaVersionType != DokkaVersionType.RELEASE) {
// Do not generate the root index.html file with the redirect
// to a non-release version, otherwise GitHub pages based documentation
// will always lead to the non-stable documentation.
// For more details, see https://github.com/Kotlin/dokka/issues/2869.
// For configuration details, see https://xvik.github.io/gradle-mkdocs-plugin/3.0.0/examples/#simple-multi-version.
mkdocs.publish.rootRedirect = false
}
|