Join GitHub today
Provide code samples in Kotlin in addition to Java [SPR-17245] #21778
Even if we have a dedicated Kotlin section in our reference documentation, all the code samples are in Java, requiring an effort for Kotlin users to translate it. I would like to make our documentation more natively Kotlin friendly by translating our code example to Kotlin.
This could be done via a Kotlin tab (in addition to the Java one) on each code sample block, and by generating 2 versions of the documentation: one in Java, one in Kotlin.
1 votes, 3 watchers
Sébastien Deleuze commented
Gradle team shared what they use on their documentation to have nice looking Groovy + Kotlin code snippets + cookie based remembering of the chosen language. I think it could be a good fit for us, it would be also nice to be able to link a specific language like we do on start.spring.io.