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

Big Chungus

11/27/2019, 1:04 PM
Is there a way to publish dokka javadoc for native/js library?
k

Kamil Doległo

11/28/2019, 2:14 PM
There isn’t unfortunately. That’s because dokka do not have its own javadoc format, it internally uses the HTMLDoclet from your JDK
j

Joffrey

12/05/2019, 11:10 AM
@Kamil Doległo Is your answer specifically for the
javadoc
output format? I thought Dokka 0.10.0 supported multiplatform, so it must be able to output some doc in JS and Native, right?
k

Kamil Doległo

12/05/2019, 11:12 AM
Yes, sure. My answer was only about javadoc, all the other output formats should work with every platform
b

Big Chungus

12/05/2019, 11:16 AM
Are there plans to create some dokka format that we could publish with our MPP libraries and get those recognised by gradle/intellij?
j

Joffrey

12/05/2019, 11:16 AM
Cool! I'm just starting to set up publishing for one of my mpp project, and I'm facing issues with the docs (javadoc jars are necessary to publish to maven Central, but I guess any jar with some docs in it should do, doesn't have to be javadoc per se). Since it's a multiproject build with some mpp subprojects and 1 JVM and 1 JS subproject, things are a bit complicated :)
k

Kamil Doległo

12/05/2019, 11:23 AM
@Big Chungus I haven’t head of such plans, but I’m not the right person to ask. There was an issue two years ago about that though (https://github.com/Kotlin/dokka/issues/215). I’ll try to find out if anything has changed
@Joffrey Good luck then! If you have any questions you can ask here or DM me 😉
j

Joffrey

12/05/2019, 11:32 AM
Thanks a lot! The error I can't manage to get rid of is a ZIP file error on the JS subproject: https://travis-ci.org/joffrey-bion/krossbow/jobs/620861213#L1116 Do you have any idea about why it's even trying to unzip a js file?
(the link doesn't scroll to the proper line because the output is collapsed, maybe it's a bug in Travis CI, but you can actually see the error L.1116 of the log)
I'll actually ask the question in a separate thread
👍 1
2 Views