diff --git a/dokka-subprojects/plugin-versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersioningConfiguration.kt b/dokka-subprojects/plugin-versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersioningConfiguration.kt index c9b01819e7..aaafb3bad1 100644 --- a/dokka-subprojects/plugin-versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersioningConfiguration.kt +++ b/dokka-subprojects/plugin-versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersioningConfiguration.kt @@ -23,7 +23,9 @@ public data class VersioningConfiguration( if (olderVersionsDir != null) assert(olderVersionsDir!!.isDirectory) { "Supplied previous version $olderVersionsDir is not a directory!" } - return olderVersionsDir?.listFiles()?.toList().orEmpty() + olderVersions.orEmpty() + return olderVersionsDir?.listFiles() + ?.filter { it.isDirectory && !it.isHidden } + ?.toList().orEmpty() + olderVersions.orEmpty() } public companion object {