https://kotlinlang.org logo
#dokka
Title
# dokka
d

Didier Villevalois

08/12/2022, 8:04 PM
Hi all! Is there an equivalent of https://javadoc.io/ but for Dokka generated docs? I understand it would require an equivalent of javadoc JARs for Dokka docs, but I don't know if even that is possible... Thanks in advance for you help!
b

Big Chungus

08/12/2022, 8:21 PM
Have you tried just shoving dokkaHtml output into a jar and serving it via javadoc.io?
d

Didier Villevalois

08/12/2022, 8:30 PM
I must admit I did not try that! 😄 I think it may be more complicated than that...
j

Joe

08/12/2022, 8:45 PM
@Didier Villevalois we've been publishing javadoc jars that contain dokka into maven central to fill the javadoc requirement, and it does look like those are accessible through javadoc.io just fine
d

Didier Villevalois

08/12/2022, 9:06 PM
Excellent! Would you mind giving me a link to the result javadoc.io link and also a link to a repository that shows the recipe to build a conformant javadoc.jar file? That would be really helpful to me!
j

Joe

08/12/2022, 9:20 PM
sure thing: pom snippet that builds it (we're a maven shop) example javadoc.io link
❤️ 1
🙏 1
b

Big Chungus

08/12/2022, 9:30 PM
Yep, can confirm. Here's my kotlin.js (so no proper javadoc for sure) lib I've just checked https://javadoc.io/doc/dev.petuska/kmdc-core
❤️ 1
d

Didier Villevalois

08/12/2022, 11:19 PM
Thanks @Joe and @Big Chungus, adding a Jar task with a javadoc classifier works like a charm. 🤟
b

Big Chungus

08/13/2022, 8:04 AM
FYI to the rest - you can host your dokka html docs on javadoc.io (by far the easiest option in terms of setup)
👍 4
d

Didier Villevalois

08/13/2022, 8:38 AM
@Big Chungus btw, your template-kmp-library and kmdc projects are literal Gradle know-how gold-mines for me. Thanks a lot for that!
❤️ 1
b

Big Chungus

08/13/2022, 8:47 AM
Awesome. I've been meaning to rework the template again since I've discovered even better ways of doing lots of things with kmp
5 Views