We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fd0459 commit 1e10c6fCopy full SHA for 1e10c6f
mkdocs/build.gradle.kts
@@ -1,3 +1,15 @@
1
+import org.jetbrains.dokkaVersionType
2
+import org.jetbrains.DokkaVersionType
3
+
4
plugins {
5
id("ru.vyarus.mkdocs") version "2.3.0"
6
}
7
8
+if (dokkaVersionType != DokkaVersionType.RELEASE) {
9
+ // Do not generate the root index.html file with the redirect
10
+ // to a non-release version, otherwise GitHub pages based documentation
11
+ // will always lead to the non-stable documentation.
12
+ // For more details, see https://github.com/Kotlin/dokka/issues/2869.
13
+ // For configuration details, see https://xvik.github.io/gradle-mkdocs-plugin/3.0.0/examples/#simple-multi-version.
14
+ mkdocs.publish.rootRedirect = false
15
+}
0 commit comments