From a003f5707c358203a538a411664344708d5ee911 Mon Sep 17 00:00:00 2001 From: Ganendra Afrasya Date: Wed, 20 May 2020 07:55:42 +0700 Subject: [PATCH] Add dokka for docs --- README.md | 3 ++- build.gradle.kts | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 15f6f1c..eb0a0f5 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,8 @@ fun main() { ``` Note that `JikanKt` is an object, so it's singleton. So `apply { }` will be applied on every request. If you have to request to multiple domains, make sure to apply it per-request! -More details on how to use it, you can check test package (yes, I'm too lazy to create docs at this moment teehee) + +For documentation, please check [here](https://ganen.moe/jikankt/docs/). # Release For latest release or to check the changelogs, please check Release tab. diff --git a/build.gradle.kts b/build.gradle.kts index 8b8e2ed..c54487f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,6 @@ plugins { kotlin("jvm") version "1.3.72" + id("org.jetbrains.dokka") version "0.10.1" maven } @@ -53,4 +54,9 @@ tasks { test { useJUnitPlatform() } + + dokka { + outputFormat = "html" + outputDirectory = "$buildDir/dokka" + } } \ No newline at end of file