diff options
author | IgnatBeresnev <ignat.beresnev@jetbrains.com> | 2023-11-10 13:33:17 +0100 |
---|---|---|
committer | IgnatBeresnev <ignat.beresnev@jetbrains.com> | 2023-11-10 13:33:17 +0100 |
commit | 4322f755c90622ed9a8ad7b9f471cd86482de03f (patch) | |
tree | bb66731759b52110e21f3c8700538f4dbd6d6745 /docs-developer/build.gradle.kts | |
parent | 6704f158b0081db0f28f73d32c0debe1540f6256 (diff) | |
download | dokka-4322f755c90622ed9a8ad7b9f471cd86482de03f.tar.gz dokka-4322f755c90622ed9a8ad7b9f471cd86482de03f.tar.bz2 dokka-4322f755c90622ed9a8ad7b9f471cd86482de03f.zip |
Fix developer docs being redirected to the SNAPSHOT version
Fixes a mistake introduced in #3174
Diffstat (limited to 'docs-developer/build.gradle.kts')
-rw-r--r-- | docs-developer/build.gradle.kts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs-developer/build.gradle.kts b/docs-developer/build.gradle.kts index d611a097..b80cf5c9 100644 --- a/docs-developer/build.gradle.kts +++ b/docs-developer/build.gradle.kts @@ -6,10 +6,10 @@ plugins { id("ru.vyarus.mkdocs") version "2.4.0" } -if (!project.version.toString().endsWith("-SNAPSHOT")) { +if (project.version.toString().endsWith("-SNAPSHOT")) { // 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. + // 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 |