docs: Upgrade to Dokka 2.0.0-Beta (#3054)
Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
This commit is contained in:
4
.github/workflows/android-ci.yml
vendored
4
.github/workflows/android-ci.yml
vendored
@@ -146,8 +146,8 @@ jobs:
|
||||
run: make android-lib-arm-v8
|
||||
|
||||
- name: Build API documentation
|
||||
run: ./gradlew dokkaHtml
|
||||
|
||||
run: ./gradlew dokkaGenerate
|
||||
|
||||
- name: Build Examples documentation
|
||||
run: make mkdocs-build
|
||||
|
||||
|
||||
3
.github/workflows/gh-pages-android-api.yml
vendored
3
.github/workflows/gh-pages-android-api.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
java-version: "17"
|
||||
|
||||
- name: Generate documentation
|
||||
run: ./gradlew dokkaHtml
|
||||
run: ./gradlew dokkaGenerate
|
||||
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@v4.6.9
|
||||
@@ -31,4 +31,3 @@ jobs:
|
||||
branch: gh-pages
|
||||
folder: platform/android/MapLibreAndroid/build/dokka/html
|
||||
target-folder: android/api/
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,6 +7,7 @@
|
||||
/platform/android/armeabi-v7a
|
||||
/platform/android/MapLibreAndroid/.cxx
|
||||
/platform/android/MapLibreAndroid/build
|
||||
/platform/android/MapLibrePlugin/build
|
||||
/platform/android/MapLibreAndroidTestApp/.cxx
|
||||
/platform/android/MapLibreAndroidTestApp/build
|
||||
/platform/android/buildSrc/build
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import org.jetbrains.dokka.gradle.DokkaTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlinter)
|
||||
alias(libs.plugins.dokka)
|
||||
@@ -38,12 +36,21 @@ dependencies {
|
||||
androidTestImplementation(libs.testRules)
|
||||
}
|
||||
|
||||
tasks.withType<DokkaTask> {
|
||||
dokka {
|
||||
moduleName.set("MapLibre Native Android")
|
||||
|
||||
dokkaSourceSets {
|
||||
named("main") {
|
||||
main {
|
||||
includes.from("Module.md")
|
||||
|
||||
sourceLink {
|
||||
remoteUrl("https://github.com/maplibre/maplibre-native/tree/main/platform/android/")
|
||||
localDirectory.set(rootDir)
|
||||
}
|
||||
|
||||
// TODO add externalDocumentationLinks when these get dokka or javadocs:
|
||||
// - https://github.com/maplibre/maplibre-java
|
||||
// - https://github.com/maplibre/maplibre-gestures-android
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,3 +5,5 @@ org.gradle.jvmargs=-Xmx4096M
|
||||
android.nonTransitiveRClass=false
|
||||
android.nonFinalResIds=false
|
||||
android.injected.androidTest.leaveApksInstalledAfterRun=true
|
||||
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
|
||||
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
|
||||
|
||||
@@ -82,14 +82,14 @@ androidxTestExtJUnit = { group = "androidx.test.ext", name = "junit", version =
|
||||
androidxTestCoreKtx = { group = "androidx.test", name = "core-ktx", version = "1.6.1" }
|
||||
kotlinxSerializationJson = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version = "1.7.2" }
|
||||
|
||||
androidGradlePlugin = { group = "com.android.tools.build", name = "gradle", version.ref = "androidGradlePlugin"}
|
||||
androidGradlePlugin = { group = "com.android.tools.build", name = "gradle", version.ref = "androidGradlePlugin" }
|
||||
|
||||
|
||||
[plugins]
|
||||
nexusPublishPlugin = { id = "io.github.gradle-nexus.publish-plugin", version = "2.0.0" }
|
||||
kotlinter = { id = "org.jmailen.kotlinter", version = "4.4.1" }
|
||||
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version = "2.0.20" }
|
||||
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
|
||||
dokka = { id = "org.jetbrains.dokka", version = "2.0.0-Beta" }
|
||||
kotlinPluginSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version = "2.0.20" }
|
||||
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
|
||||
android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" }
|
||||
android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" }
|
||||
|
||||
@@ -25,7 +25,7 @@ plugins {
|
||||
|
||||
include(":MapLibreAndroid", ":MapLibreAndroidTestApp", ":MapLibreAndroidLint")
|
||||
|
||||
rootProject.name = "MapLibre Native for Android"
|
||||
rootProject.name = "MapLibreAndroid"
|
||||
|
||||
val renderTestProjectDir = file("$rootDir/../../render-test/android")
|
||||
includeBuild(renderTestProjectDir) {
|
||||
@@ -37,4 +37,4 @@ includeBuild(cppTestProjectDir) {
|
||||
name = "cppUnitTestsApp"
|
||||
}
|
||||
|
||||
includeBuild("./MapLibrePlugin")
|
||||
includeBuild("./MapLibrePlugin")
|
||||
|
||||
Reference in New Issue
Block a user