[//]: # (title: Get started with Dokka)
Below you can find simple instructions to help you get started with Dokka.
Apply the Gradle plugin for Dokka in the root build script of your project:
```kotlin
plugins {
id("org.jetbrains.dokka") version "%dokkaVersion%"
}
```
When documenting [multi-project](https://docs.gradle.org/current/userguide/multi_project_builds.html) builds, you need
to apply the Gradle plugin within subprojects as well:
```kotlin
subprojects {
apply(plugin = "org.jetbrains.dokka")
}
```
To generate documentation, run the following Gradle tasks:
* `dokkaHtml` for single-project builds
* `dokkaHtmlMultiModule` for multi-project builds
By default, the output directory is set to `/build/dokka/html` and `/build/dokka/htmlMultiModule`.
To learn more about using Dokka with Gradle, see [Gradle](dokka-gradle.md).
Apply the Gradle plugin for Dokka in the root build script of your project:
```groovy
plugins {
id 'org.jetbrains.dokka' version '%dokkaVersion%'
}
```
When documenting [multi-project](https://docs.gradle.org/current/userguide/multi_project_builds.html) builds, you need
to apply the Gradle plugin within subprojects as well:
```groovy
subprojects {
apply plugin: 'org.jetbrains.dokka'
}
```
To generate documentation, run the following Gradle tasks:
* `dokkaHtml` for single-project builds
* `dokkaHtmlMultiModule` for multi-project builds
By default, the output directory is set to `/build/dokka/html` and `/build/dokka/htmlMultiModule`.
To learn more about using Dokka with Gradle, see [Gradle](dokka-gradle.md).
Add the Maven plugin for Dokka to the `plugins` section of your POM file:
```xml
org.jetbrains.dokka
dokka-maven-plugin
%dokkaVersion%
pre-site
dokka
```
To generate documentation, run the `dokka:dokka` goal.
By default, the output directory is set to `target/dokka`.
To learn more about using Dokka with Maven, see [Maven](dokka-maven.md).