From f03083d7534209ad94dc3c4d7afd17f58e58127d Mon Sep 17 00:00:00 2001 From: vmishenev Date: Wed, 28 Jul 2021 14:57:38 +0300 Subject: Migrate Dokka examples to Dokka repo (KT-47798) (#2030) * Migrate Dokka examples to Dokka repo (KT-47798) * Configure workflow of examples checking * Add workflow to deploy examples --- .../dokka-customFormat-example/build.gradle.kts | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 examples/gradle/dokka-customFormat-example/build.gradle.kts (limited to 'examples/gradle/dokka-customFormat-example/build.gradle.kts') diff --git a/examples/gradle/dokka-customFormat-example/build.gradle.kts b/examples/gradle/dokka-customFormat-example/build.gradle.kts new file mode 100644 index 00000000..94ea5029 --- /dev/null +++ b/examples/gradle/dokka-customFormat-example/build.gradle.kts @@ -0,0 +1,31 @@ +import org.jetbrains.dokka.gradle.DokkaTask + +plugins { + kotlin("jvm") version "1.4.32" + id("org.jetbrains.dokka") version ("1.4.32") +} + +buildscript { + dependencies { + classpath("org.jetbrains.dokka:dokka-base:1.4.32") + } +} + +repositories { + mavenCentral() +} + +/** + * Custom format adds a custom logo + */ +tasks.register("dokkaCustomFormat") { + pluginConfiguration { + customStyleSheets = listOf(file("logo-styles.css")) + customAssets = listOf(file("ktor-logo.png")) + } +} + +dependencies { + implementation(kotlin("stdlib")) + testImplementation(kotlin("test-junit")) +} -- cgit