Skip to content

Commit ee51622

Browse files
authored
docs: updated dokka (#801)
1 parent df28733 commit ee51622

File tree

9 files changed

+44
-4
lines changed

9 files changed

+44
-4
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ jobs:
4343
# Run dokka and create tar
4444
- name: Generate documentation
4545
run: |
46-
./gradlew dokkaHtmlMultiModule
46+
./gradlew docs:dokkaGenerate
4747
4848
echo "Creating tar for generated docs"
49-
cd $GITHUB_WORKSPACE/build/dokka/htmlMultiModule && tar cvf ~/maps-compose-docs.tar .
49+
cd $GITHUB_WORKSPACE/docs/build/dokka/html && tar cvf ~/maps-compose-docs.tar .
5050
5151
echo "Unpacking tar into gh-pages branch"
5252
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
/.idea/assetWizardSettings.xml
1212
.DS_Store
1313
/build
14+
build/
1415
/captures
1516
.externalNativeBuild
1617
.cxx
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Common conventions for generating documentation with Dokka.
3+
*/
4+
5+
plugins {
6+
id("org.jetbrains.dokka")
7+
}
8+
9+
dokka {
10+
dokkaSourceSets.configureEach {
11+
sourceLink {
12+
localDirectory.set(rootDir)
13+
}
14+
}
15+
}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
}
1515

1616
plugins {
17-
alias(libs.plugins.dokka) apply true
17+
id("org.jetbrains.dokka") version "2.1.0"
1818
alias(libs.plugins.compose.compiler) apply false
1919
id("com.autonomousapps.dependency-analysis") version "3.4.1"
2020
alias(libs.plugins.android.application) apply false

docs/build.gradle.kts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
plugins {
2+
kotlin("jvm") apply false
3+
id("org.jetbrains.dokka")
4+
}
5+
6+
dependencies {
7+
dokka(project(":maps-compose"))
8+
dokka(project(":maps-compose-utils"))
9+
dokka(project(":maps-compose-widgets"))
10+
}
11+
12+
dokka {
13+
moduleName.set("Android Maps Compose")
14+
}

maps-compose-utils/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
id("kotlin-android")
55
alias(libs.plugins.compose.compiler)
66
id("android.maps.compose.PublishingConventionPlugin")
7+
id("org.jetbrains.dokka")
78
}
89

910
android {

maps-compose-widgets/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
id("kotlin-android")
55
alias (libs.plugins.compose.compiler)
66
id("android.maps.compose.PublishingConventionPlugin")
7+
id("org.jetbrains.dokka")
78
}
89

910
android {

maps-compose/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
33
plugins {
44
id("org.jetbrains.kotlin.android")
55
alias(libs.plugins.compose.compiler)
6+
id("org.jetbrains.dokka")
67
id("android.maps.compose.PublishingConventionPlugin")
78
}
89

@@ -98,3 +99,9 @@ val generateArtifactIdFile = tasks.register("generateArtifactIdFile") {
9899
tasks.named("preBuild") {
99100
dependsOn(generateArtifactIdFile)
100101
}
102+
103+
dokka {
104+
dokkaSourceSets.configureEach {
105+
106+
}
107+
}

settings.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ rootProject.name = "android-maps-compose"
1818
include(":maps-app")
1919
include(":maps-compose")
2020
include(":maps-compose-widgets")
21-
include(":maps-compose-utils")
21+
include(":maps-compose-utils")
22+
include(":docs")

0 commit comments

Comments
 (0)