Skip to content

Commit

Permalink
Remove unnecessary mkdocs config
Browse files Browse the repository at this point in the history
  • Loading branch information
cacay committed Dec 2, 2021
1 parent f598cce commit 2407edb
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,6 @@ subprojects {
mkdocs {
sourcesDir = "docs"
buildDir = "${project.buildDir}/mkdocs"

publish.apply {
val projectVersion = "${project.version}"
if (System.getenv("GITHUB_REF") == "refs/heads/master") {
// Publishing to master; update the latest version pointer
docPath = projectVersion
rootRedirect = true
} else {
// Publishing some other commit; don't update the latest version pointer
docPath = System.getenv("GITHUB_SHA") ?: projectVersion
rootRedirect = false
}
}
}

tasks.withType<ru.vyarus.gradle.plugin.mkdocs.task.MkdocsTask>().configureEach {
Expand Down

0 comments on commit 2407edb

Please sign in to comment.