Quick question, when documenting `expect`-`actual`...
# multiplatform
r
Quick question, when documenting
expect
-
actual
things, do you need to copy the KDoc on each
actual
on each platform or is documenting
expect
enough? I’m talking mostly from a IDEA-picking-it-up point of view
a
Looks like yes, this is what I'm doing currently 😞
l
Is there an issue for IDEA to handle it better when only one of the two is documented, and when both have different documentation?
a
Basically IDEA does not show the doc when only
expect
is documented and say in an Android module you are trying to pop up the doc. If both
expect
and
actual
are documented then it shows the one from the
actual
, which is fine.
a
IDEA does show the doc depending on the platform you are trying to view it from. So, if you are viewing it from common, it will pull the common documentation (
expect
). If it's from a
jvm source
it will pull the documentation from `jvm`'s
actual
implementation
r
Thanks, I’ll just adapt and copy paste stuff because it’s always a nice thing to do 🙃
🎉 1
b
How do you guys publish kdocs to be available to lib consumers on ide?
a
They are uploaded automatically by the bintray or the maven-publish plugin
b
What about sources for kotlin native?