File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ python {
2020
2121mkdocs {
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
You can’t perform that action at this time.
0 commit comments