Use Dokka instead of Javadoc for Android API docs (#754)
This commit is contained in:
24
.github/workflows/gh-pages-android-api.yml
vendored
24
.github/workflows/gh-pages-android-api.yml
vendored
@@ -1,32 +1,24 @@
|
||||
name: gh-pages-android-api
|
||||
|
||||
on:
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'Version'
|
||||
required: true
|
||||
default: '9.5.2'
|
||||
|
||||
jobs:
|
||||
gh-pages-android-api:
|
||||
defaults:
|
||||
run:
|
||||
working-directory: platform/android
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout 🛎️
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Download javadoc from Maven
|
||||
run: |
|
||||
wget https://repo1.maven.org/maven2/org/maplibre/gl/android-sdk/${{ github.event.inputs.version }}/android-sdk-${{ github.event.inputs.version }}-javadoc.jar -O javadoc.zip
|
||||
|
||||
- name: Unzip
|
||||
run: |
|
||||
mkdir unzipped/
|
||||
unzip javadoc.zip -d unzipped/
|
||||
|
||||
- name: Generate documentation
|
||||
run: ./gradlew dokkaHtml
|
||||
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@v4.4.1
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: unzipped
|
||||
folder: MapboxGLAndroidSDK/build/dokka/html
|
||||
target-folder: android/api/
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
plugins {
|
||||
id 'org.jmailen.kotlinter'
|
||||
id 'org.jetbrains.dokka' version '1.7.20'
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
VERSION_NAME=9.1.0-SNAPSHOT
|
||||
VERSION_NAME=9.6.0
|
||||
|
||||
# Only build native dependencies for the current ABI
|
||||
# See https://code.google.com/p/android/issues/detail?id=221098#c20
|
||||
|
||||
Reference in New Issue
Block a user