We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d1db25 commit 0405db8Copy full SHA for 0405db8
pkl-doc/src/main/kotlin/org/pkl/doc/MainPageGenerator.kt
@@ -67,6 +67,14 @@ internal class MainPageGenerator(
67
private fun HtmlBlockTag.renderPackages() {
68
if (packagesData.isEmpty()) return
69
70
+ val sortedPackages =
71
+ packagesData.sortedWith { pkg1, pkg2 ->
72
+ when {
73
+ pkg1.ref.pkg == "pkl" -> -1 // always sort the stdlib first
74
+ else -> pkg1.ref.pkg.compareTo(pkg2.ref.pkg)
75
+ }
76
77
+
78
div {
79
classes = setOf("member-group")
80
@@ -79,7 +87,7 @@ internal class MainPageGenerator(
87
}
88
81
89
ul {
82
- for (pkg in packagesData) {
90
+ for (pkg in sortedPackages) {
83
91
val packageScope =
84
92
pageScope.packageScopes[pkg.ref.pkg]
85
93
// create scope for previously generated package
0 commit comments