Join Slack
Communities
Powered by
Hi all, is there a way to customize how the code s...
# dokka
h
Harald Pehl
12/08/2020, 3:22 PM
Hi all, is there a way to customize how the code sample are rendered? I'd like to omit the run button and change the target platform.
m
Marcin Aman
12/09/2020, 9:05 AM
We are using kotlin-playground for this functionality and i don't see an option to omit the run button:
https://github.com/JetBrains/kotlin-playground
As for the change of platform: they support JS and JVM. As for now there is no way to set it in the dokka, we are always going for the JVM platform. If you have some spare time i encourage you to contribute 🙂 I think the change should be made somewhere here:
https://github.com/Kotlin/dokka/blob/084ae72f5dfec6a4ff6f370807fe5312cf23cf93/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt#L675
h
Harald Pehl
12/09/2020, 11:44 AM
Thanks for the feedback
@Marcin Aman
So less time and so much interesting stuff to do 😉 Well lets see, maybe I can find some time for a PR.
9
Views
Open in Slack
Previous
Next