Skip to content

Commit

Permalink
Fix developer docs being redirected to the SNAPSHOT version
Browse files Browse the repository at this point in the history
Fixes a mistake introduced in #3174
  • Loading branch information
IgnatBeresnev committed Nov 10, 2023
1 parent 6704f15 commit 4322f75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs-developer/build.gradle.kts
Expand Up @@ -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
Expand Down

0 comments on commit 4322f75

Please sign in to comment.