Skip to content

Commit e71bfa4

Browse files
authored
docs: Fix versions
Signed-off-by: Eric Deandrea <[email protected]>
1 parent 783e798 commit e71bfa4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ python {
2020

2121
mkdocs {
2222
extras = mapOf(
23+
"version" to "${project.version}",
2324
"project-version" to "${project.version}",
2425
"project-groupId" to "${project.group}",
2526
"project-artifactId" to "${rootProject.name}",
@@ -36,6 +37,8 @@ mkdocs {
3637
// This is a hack because versionAliases is created final as an array without a setter
3738
// So it isn't friendly to the Gradle Kotlin DSL
3839
org.codehaus.groovy.runtime.InvokerHelper.setProperty(this, "versionAliases", arrayOf(alias))
40+
docPath = "${project.version}"
41+
rootRedirect = true
3942
rootRedirectTo = if (System.getenv("IS_PR_BUILD")?.toBoolean() == true) alias else "current"
4043
generateVersionsFile = true
4144
existingVersionsFile = versionsFile

0 commit comments

Comments
 (0)