File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ import kotlinx.html.stream.createHTML
3
3
import org.jetbrains.dokka.base.DokkaBase
4
4
import org.jetbrains.dokka.base.DokkaBaseConfiguration
5
5
import org.jetbrains.dokka.gradle.DokkaTaskPartial
6
+ import org.semver.Version
6
7
7
8
buildscript {
8
9
dependencies {
9
10
classpath(" org.jetbrains.dokka:versioning-plugin:1.8.10" )
11
+ classpath(" org.semver:api:0.9.33" )
10
12
}
11
13
}
12
14
@@ -204,7 +206,7 @@ fun createDocsIndexPage(): String {
204
206
div(" table" ) {
205
207
val versionDirs = docsDir.listFiles()
206
208
?.filter { it.isDirectory }
207
- ?.sortedByDescending { it.name }
209
+ ?.sortedByDescending { Version .parse( it.name) }
208
210
if (versionDirs != null ) {
209
211
for (versionDir in versionDirs) {
210
212
val versionIndex = versionDir.resolve(" index.html" )
You can’t perform that action at this time.
0 commit comments