Skip to content

Commit 9954845

Browse files
authored
Merge pull request #308 from modelix/build/api-ref-exclude-latest
build: exclude latest from versionDirs
2 parents 71b0a89 + 122191c commit 9954845

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ fun createDocsIndexPage(): String {
326326
h2 { +"Available versions:" }
327327
div("table") {
328328
val versionDirs = docsDir.listFiles()
329-
?.filter { it.isDirectory && !it.name.startsWith('.') }
329+
?.filter {
330+
it.isDirectory && !it.name.startsWith('.') && it.name != "latest"
331+
}
330332
?.sortedByDescending { Version.parse(it.name) }
331333
if (versionDirs != null) {
332334
div("table-row") {

0 commit comments

Comments
 (0)