Skip to content

Latest commit

 

History

History

kotlin-multiplatform-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Dokka Multiplatform example

This example demonstrates Dokka's configuration and output for a simple Kotlin Multiplatform project.

It contains Kotlin source sets for different platforms that are automatically picked up by Dokka from the Kotlin Gradle Plugin, and an additional custom source set known to Dokka only.

The example demonstrates the following things:

  • Documentation for common code
  • Documentation for expect/actual declarations available via tabs
  • Documentation for platform-specific declarations, including functions from different source sets, but with clashing names
  • Use of Platform-specific API, such as CPointer from kotlinx.cinterop

screenshot demonstration of output

Running

Run the :dokkaGenerate Gradle task to generate documentation for this example:

./gradlew :dokkaGenerate