I want to create a dokka plugin that exports some ...
# dokka
d
I want to create a dokka plugin that exports some basic information about classes/functions into a json file that is stored into the generated docs folder. My motivation to do this is to create a discord bot for searching and linking to the correct documentation. What is the best extension point to do this?
i
Hi! A very similar plugin is written for knit: https://github.com/Kotlin/kotlinx-knit/tree/main/pathsaver It exports all of the names and paths into a json file so that knit can find relevant links later on You can add it as a dependency and just build your project, it should generate the json file in the build folder. It might be enough for your use case :)
Copy code
dependencies {
    dokkaPlugin("org.jetbrains.kotlinx:dokka-pathsaver-plugin:$knit_version")
}
d
That plugin gives a bit too much information for my use case 😅. But it looks like a great starting point for building my own. Thanks!
🙂 1
👍 1