aboutsummaryrefslogtreecommitdiff
path: root/docs-developer/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'docs-developer/build.gradle.kts')
-rw-r--r--docs-developer/build.gradle.kts15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs-developer/build.gradle.kts b/docs-developer/build.gradle.kts
new file mode 100644
index 00000000..e920c6f8
--- /dev/null
+++ b/docs-developer/build.gradle.kts
@@ -0,0 +1,15 @@
+import org.jetbrains.dokkaVersionType
+import org.jetbrains.DokkaVersionType
+
+plugins {
+ id("ru.vyarus.mkdocs") version "2.4.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
+}