This message was deleted.
# dokka
s
This message was deleted.
1
i
Hi! Unfortunately, it's not that easy to configure Dokka for stdlib due to peculiarities of stdlib itself, it's not really an average library Is there any particular reason you'd like to build docs for stdlib specifically? We usually manually test things on kotlinx.coroutines or ktor. Both are decently sized, contain multiplatform code and you only need to add
mavenLocal()
to the list of project repositories and apply your plugin in the buildscript. If you're absolutely determined to build stdlib docs locally, I can write out more detailed instructions with multiple options, but it'll definitely take more time and brain fuel than if you went with kotlinx.coroutines or ktor
m
Basically I'm saving the docs as JSON so it can be searched for on a rest API, that can be used for a variety of things like Discord bot for example. The reason I want the stdlib is because it's the main lib for Kotlin, so all its function are very important to have. I found a bit of a cursed way to do it, basically download the sources jar from the Maven repo, turn it into a project, fix functions, etc with
TODO()
so it compiles, then add Dokka and generate the JSON! It works!
🤯 1
i
That... could actually be simpler than configuring Dokka for stdlib from scratch 😅 Hopefully, there are no major bugs with using this approach Either way, I'm glad that you've found a way that works for you. If you do decide that you want to build it from the project itself, let me know, I'll provide more details
By the way, I don't even think that Dokka needs the project to compile. Or have you run into issues related to this? I can run Dokka fine with the following code in my test project. It might be different for multiplatform projects though
m
So far no major bugs! And you're right, that makes life so much easier, it does work without needing to fix the errors
🥳 1