Kotlin / dokka

API documentation engine for Kotlin
https://kotl.in/dokka
Apache License 2.0
3.41k stars 405 forks source link

[K2] Support generating documentation for stdlib #3354

Open vmishenev opened 10 months ago

vmishenev commented 10 months ago

Currently, it is blocked by #3137 and (possible) https://youtrack.jetbrains.com/issue/KT-56076/K2-build-Kotlin-standard-library

StdLib is a specific Kotlin library that can require supporting extra flags to analyse and build the documentation. For example, in Dokka K1 the flag ignoreCommonBuiltIns should be enabled to analyse stdlib.

Dokka K2 should have the possibility to generate correct documentation for stdlib. The result documentation should have no difference from the output generated by Dokka K1.

Technical details

It can require enabling AnalysisFlags.allowKotlinPackage in the Analysis API. Also, extra analysis flags can be needed.

whyoleg commented 10 months ago

First tests which are specific to stdlib and are failing now for K2 are added in #3349 to ObviousAndInheritedFunctionsDocumentableFilterTest (in the end of file). They are now muted with OnlyDescriptors until this issue is resolved

IgnatBeresnev commented 9 months ago

Need to keep an eye on the issue and how it's resolved for compiling K2, and go from there.