Skip to content

Commit

Permalink
Fix Android docs deployment (maplibre#2412)
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers authored May 22, 2024
1 parent 04be6ec commit d3d29cb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ jobs:
- name: Build libmaplibre.so for arm-v8
run: make android-lib-arm-v8

- name: Build documentation
run: ./gradlew dokkaHtml

- name: Copy developer config with API key for UI tests
if: github.ref == 'refs/heads/main'
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/gh-pages-android-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
- name: Checkout 🛎️
uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"

- name: Generate documentation
run: ./gradlew dokkaHtml

Expand All @@ -22,3 +27,4 @@ jobs:
branch: gh-pages
folder: platform/android/MapLibreAndroid/build/dokka/html
target-folder: android/api/

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MapLibre Native for Android
# Module MapLibre Native Android

This is the API documentation for the Android API of [MapLibre Native](https://github.com/maplibre/maplibre-native).

Expand Down
5 changes: 2 additions & 3 deletions platform/android/MapLibreAndroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ dependencies {
}

tasks.withType(DokkaTask.class) {
moduleName.set("MapLibre Native for Android")
moduleName.set("MapLibre Native Android")

dokkaSourceSets {

configureEach {
includes.from("README.md")
includes.from("Module.md")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion platform/android/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ androidGradlePlugin = { group = "com.android.tools.build", name = "gradle", vers
nexusPublishPlugin = { id = "io.github.gradle-nexus.publish-plugin", version = "1.1.0" }
kotlinter = { id = "org.jmailen.kotlinter", version = "3.13.0" }
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version = "1.9.21" }
dokka = { id = "org.jetbrains.dokka", version = "1.7.20" }
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
kotlinPluginSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version = "1.9.21" }

0 comments on commit d3d29cb

Please sign in to comment.