From 0d82bfa197d369406ddf5a131b7a1b07a5cda50a Mon Sep 17 00:00:00 2001 From: danielTari Date: Thu, 28 Nov 2024 12:45:16 +0100 Subject: [PATCH] [ANDROSDK-1941] add sdk icon and title --- .github/workflows/dokka.yml | 1 + assets/logo-icon.svg | 56 +++++++++++++++++++++++++++++++++++++ core/build.gradle.kts | 16 +++++++++++ 3 files changed, 73 insertions(+) create mode 100644 assets/logo-icon.svg diff --git a/.github/workflows/dokka.yml b/.github/workflows/dokka.yml index d1e45d7345..60008dd103 100644 --- a/.github/workflows/dokka.yml +++ b/.github/workflows/dokka.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - ANDROSDK-1941 workflow_dispatch: diff --git a/assets/logo-icon.svg b/assets/logo-icon.svg new file mode 100644 index 0000000000..5de1dc5688 --- /dev/null +++ b/assets/logo-icon.svg @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 7d716ef125..c4bfdcf792 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -214,6 +214,22 @@ tasks.withType().configureEach { } } } + dokkaSourceSets { + configureEach { + moduleName.set("DHIS2 Android SDK") + } + } + + val dokkaBaseConfiguration = """ + { + "customAssets": ["${file("../assets/logo-icon.svg")}"] + } + """ + pluginsMapConfiguration.set( + mapOf( + "org.jetbrains.dokka.base.DokkaBase" to dokkaBaseConfiguration, + ), + ) } tasks.dokkaJavadoc.configure {