Greetings. I am new to android kotlin development....
# dokka
d
Greetings. I am new to android kotlin development. How can I create my plugin for dokka v1.4.0-rc and how can I debug it during development? Can I just create a DokkaPlugin heir in a new project and debug it while expanding it? Or do I have to do everything in the copied dokka sources? Is there a git repository with an example or more detailed tutorials for less experienced professionals? Thanks.
m
A basic guide is available here: https://kotlin.github.io/dokka/1.4.10/developer_guide/introduction/ As for debugging: I'd just publish your plugin and use it on some example project with debugger enabled (
org.gradle.debug = true
in gradle.properties file). Then in the plugin's repository it would be best to add a cloned dokka as library sources and use Remote debug configuration in intellij. Examples of plugins are available on dokka repository, for example Javadoc or GFM are plugins: https://github.com/Kotlin/dokka/tree/master/plugins
m
For me easiest way is adding Dokka plugin to Gradle composite build, like here: https://github.com/msink/kotlin-libui/commit/ba743c761402f77fd38a4992f464f87cc9e09d99 In this case debugging in IDEA just works, starting from any breakpoint in plugin sources.
d
Thank you so much for your help! It helped me a lot))