aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/README.md b/README.md
index eab270e7..6abc761c 100644
--- a/README.md
+++ b/README.md
@@ -52,13 +52,12 @@ dokka {
Kotlin
```kotlin
-tasks {
- val dokka by getting(DokkaTask::class) {
- outputFormat = "html"
- outputDirectory = "$buildDir/dokka"
- }
+dokka {
+ outputFormat = "html"
+ outputDirectory = "$buildDir/dokka"
}
```
+You may need to add an `import org.jetbrains.dokka.gradle.dokka` to the top of `build.gradle.kts` in this case.
[Output formats](#output_formats)
@@ -225,7 +224,7 @@ kotlin { // Kotlin Multiplatform plugin configuration
js("customName")
}
-val dokka by getting(DokkaTask::class) {
+dokka {
outputDirectory = "$buildDir/dokka"
outputFormat = "html"