File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 27
27
- name : Create symlink to latest version
28
28
run : |
29
29
cd build/dokka
30
- latestVersion=$(for n in *; do printf '%s\n' "$n"; done | sort | grep -E "^[0-9]+\.[0-9]+" | tail -n1)
30
+ latestVersion=$(for n in *; do printf '%s\n' "$n"; done | sort -V | grep -E "^[0-9]+\.[0-9]+" | tail -n1)
31
31
if [[ -z "${latestVersion}" ]]; then
32
32
ln -sf ${latestVersion} latest
33
33
fi
Original file line number Diff line number Diff line change @@ -324,6 +324,17 @@ fun createDocsIndexPage(): String {
324
324
?.filter { it.isDirectory && ! it.name.startsWith(' .' ) }
325
325
?.sortedByDescending { Version .parse(it.name) }
326
326
if (versionDirs != null ) {
327
+ div(" table-row" ) {
328
+ div(" main-subrow" ) {
329
+ div(" w-100" ) {
330
+ span(" inline-flex" ) {
331
+ a(href = versionDirs.last().relativeTo(docsDir).parent.plus(" /latest" )) {
332
+ + " modelix.core LATEST"
333
+ }
334
+ }
335
+ }
336
+ }
337
+ }
327
338
for (versionDir in versionDirs) {
328
339
val versionIndex = versionDir.resolve(" index.html" )
329
340
if (versionIndex.exists()) {
You can’t perform that action at this time.
0 commit comments