# Attaching kdoc to library

**URL:** <https://discuss.kotlinlang.org/t/attaching-kdoc-to-library/23294>\
**Category:** Native\
**Created:** [October 24, 2021, 12:59am UTC](https://discuss.kotlinlang.org/t/attaching-kdoc-to-library/23294 "2021-10-24T00:59:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chaoz](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@Chaoz](https://discuss.kotlinlang.org/u/Chaoz)\
**Post date:** [October 24, 2021, 12:59am UTC](https://discuss.kotlinlang.org/t/attaching-kdoc-to-library/23294/1 "2021-10-24T00:59:04Z")

</div>

Is it possible to attach documentation to a Kotlin/Native library (klib)?  
I’ve made a simple native library alongside with some [kdoc](https://kotlinlang.org/docs/kotlin-doc.html) by creating a Kotlin/Native project in IntelliJ, then adding the maven-publish plugin like in [the tutorial](https://kotlinlang.org/docs/multiplatform-library.html). In my `.m2/repository/` folder I can find my klib, however, neither adding it manually with `implementation(files("library.klib"))` nor with `mavenLocal()` makes it come with the original kdoc. Is there any way to include it in the klib? Or, at least include it on the side somehow? Also, I’ve seen that inside the local maven repo, the source code is along with the klib as a jar, however IntelliJ does not recognize it (it tries to decompile the library when I attempt to see the code when using the library in another project).
