File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Documentation
2+ on :
3+ release :
4+ types : [released]
5+
6+ permissions :
7+ contents : read
8+ pages : write
9+ id-token : write
10+
11+ jobs :
12+ deploy :
13+ runs-on : ubuntu-latest
14+
15+ environment :
16+ name : github-pages
17+ url : ${{ steps.deployment.outputs.page_url }}
18+
19+ steps :
20+ - uses : actions/checkout@v3
21+ - uses : actions/setup-java@v3
22+ with :
23+ distribution : temurin
24+ java-version : 17
25+ - name : Setup Gradle
26+ uses : gradle/gradle-build-action@v2
27+
28+ - name : Generate Docs
29+ run : ./gradlew --no-daemon dokkaHtmlMultiModule
30+
31+ - name : Upload artifact
32+ uses : actions/upload-pages-artifact@v1
33+ with :
34+ path : ./build/dokka/htmlMultiModule
35+ - name : Deploy to GitHub Pages
36+ id : deployment
37+ uses : actions/deploy-pages@v2
Original file line number Diff line number Diff line change 11plugins {
22 alias(libs.plugins.kover)
33 alias(libs.plugins.versioning)
4+ alias(libs.plugins.dokka)
45}
56
67repositories {
@@ -39,3 +40,7 @@ gitVersioning.apply {
3940 }
4041 }
4142}
43+
44+ subprojects {
45+ apply (plugin = " org.jetbrains.dokka" )
46+ }
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ dependencyResolutionManagement {
2020 val kover = " 0.7.1"
2121 val gitVersioning = " 6.4.2"
2222 val lsp4j = " 0.21.0"
23+ val dokka = " 1.8.20"
2324
2425 create(" libs" ) {
2526 version(" kotlin" , kotlin)
@@ -32,6 +33,7 @@ dependencyResolutionManagement {
3233 plugin(" shadow" , " com.github.johnrengelman.shadow" ).version(shadow)
3334 plugin(" kover" , " org.jetbrains.kotlinx.kover" ).version(kover)
3435 plugin(" versioning" , " me.qoomon.git-versioning" ).version(gitVersioning)
36+ plugin(" dokka" , " org.jetbrains.dokka" ).version(dokka)
3537 }
3638 }
3739}
You can’t perform that action at this time.
0 commit comments