blob: b80cf5c920ff9ce78b4816ccc9d5a729868709c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
* Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
plugins {
id("ru.vyarus.mkdocs") version "2.4.0"
}
if (project.version.toString().endsWith("-SNAPSHOT")) {
// Do not generate the root index.html file with the redirect
// to a snapshot version, otherwise GitHub Pages-based documentation
// will always lead to the non-yet-released 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
}
|