File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
docs/global/modules/core/partials Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 24
24
path : build/dokka
25
25
- name : Generate Docs with Dokka
26
26
run : ./gradlew dokkaHtmlMultiModule
27
+ - name : Create symlink to latest version
28
+ run : |
29
+ cd build/dokka
30
+ latestVersion=$(for n in *; do printf '%s\n' "$n"; done | sort -V | grep -E "^[0-9]+\.[0-9]+" | tail -n1)
31
+ if [[ -z "${latestVersion}" ]]; then
32
+ ln -sf ${latestVersion} latest
33
+ fi
27
34
- name : Publish to GitHub Pages
28
35
uses : peaceiris/actions-gh-pages@v3
29
36
with :
Original file line number Diff line number Diff line change @@ -329,6 +329,17 @@ fun createDocsIndexPage(): String {
329
329
?.filter { it.isDirectory && ! it.name.startsWith(' .' ) }
330
330
?.sortedByDescending { Version .parse(it.name) }
331
331
if (versionDirs != null ) {
332
+ div(" table-row" ) {
333
+ div(" main-subrow" ) {
334
+ div(" w-100" ) {
335
+ span(" inline-flex" ) {
336
+ a(href = " /latest" ) {
337
+ + " modelix.core LATEST"
338
+ }
339
+ }
340
+ }
341
+ }
342
+ }
332
343
for (versionDir in versionDirs) {
333
344
val versionIndex = versionDir.resolve(" index.html" )
334
345
if (versionIndex.exists()) {
Original file line number Diff line number Diff line change 2
2
* xref:core:howto/usage-model-api-gen-gradle.adoc[]
3
3
* xref:core:howto/usage-light-model-client.adoc[]
4
4
* xref:core:howto/testing-against-model-api.adoc[]
5
+ * xref:core:howto/modelql.adoc[]
You can’t perform that action at this time.
0 commit comments