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
Ignat Beresnev
05/14/2022, 7:23 AM
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 :)