Create kdoc and view in browser

I do not know how to watch generated kdocin my browser.

I am developing for Android with Kotlin and added dokka as a dependency in gradle.
The new task dokkais completed without error.

I added dokka as a dependency in my projects build.gradle

dependencies {
...
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.13"
}

and applied the plugin in my applications build.gradle

apply 'kotlin-android'
apply 'kotlin-android-extensions'
apply 'org.jetbrains.dokka'

But I can not find Output in the project folder. How can I see the output in my browser or where is it?

thank

Edit 1: IDE: Intellij; Kotlin Version: 1.1.1

Edit 2 (04/11/2017):

build.gradle:

dokka {
    outputDirectory = "$buildDir/docs"
}
+4
source share
2 answers

I got it for work.

This post resolved the issue.

-, dokka sourceSets {...}, android {...} -.

: sourceSets{...} android{...} -block

+1

dokka:

dokka {
    outputDirectory = "$buildDir/docs"
}

, ./gradlew dokka

, Android, , .

+1

Source: https://habr.com/ru/post/1673310/


All Articles