Skip to content

Commit 210fd45

Browse files
authored
docs: Remove outdated version header and simplify version config (#147)
Signed-off-by: Eric Deandrea <[email protected]>
1 parent e71bfa4 commit 210fd45

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

docs/build.gradle.kts

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

2121
mkdocs {
2222
extras = mapOf(
23-
"version" to "${project.version}",
2423
"project-version" to "${project.version}",
2524
"project-groupId" to "${project.group}",
2625
"project-artifactId" to "${rootProject.name}",
@@ -37,9 +36,9 @@ mkdocs {
3736
// This is a hack because versionAliases is created final as an array without a setter
3837
// So it isn't friendly to the Gradle Kotlin DSL
3938
org.codehaus.groovy.runtime.InvokerHelper.setProperty(this, "versionAliases", arrayOf(alias))
40-
docPath = "${project.version}"
39+
docPath = project.version.toString()
4140
rootRedirect = true
42-
rootRedirectTo = if (System.getenv("IS_PR_BUILD")?.toBoolean() == true) alias else "current"
41+
// rootRedirectTo = if (System.getenv("IS_PR_BUILD")?.toBoolean() == true) alias else "current"
4342
generateVersionsFile = true
4443
existingVersionsFile = versionsFile
4544
}

docs/src/doc/mkdocs-customizations/overrides/main.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/src/doc/mkdocs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ extra_css:
106106
extra:
107107
version:
108108
provider: mike
109-
default:
110-
- current
111-
- dev
112109
alias: true
113110
social:
114111
- icon: fontawesome/brands/github

0 commit comments

Comments
 (0)