Skip to content

Commit

Permalink
chore: Redirect 1.0.0-SNAPSHOT dokka (more more)
Browse files Browse the repository at this point in the history
  • Loading branch information
sya-ri committed Nov 30, 2023
1 parent 6c84183 commit b0844f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ tasks.named("dokkaHtml") {
}
}
doLast {
if (version.toString().endsWith("-SNAPSHOT").not() || dokkaDir.listFiles(FileFilter { it.isDirectory }).isEmpty()) {
if (version.toString().endsWith("-SNAPSHOT").not() || dokkaDir.listFiles(FileFilter { it.isDirectory }).singleOrNull()?.name == version.toString()) {
dokkaDir.resolve("index.html").writeText(
"""
<!DOCTYPE html>
Expand Down

1 comment on commit b0844f2

@vercel
Copy link

@vercel vercel bot commented on b0844f2 Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kt-config – ./

kt-config-git-master-sya-ri.vercel.app
ktconfig.s7a.dev
kt-config-sya-ri.vercel.app

Please sign in to comment.