aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/src/doc/docs/user_guide/gradle/usage.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/src/doc/docs/user_guide/gradle/usage.md b/docs/src/doc/docs/user_guide/gradle/usage.md
index 5e2fea37..3570133c 100644
--- a/docs/src/doc/docs/user_guide/gradle/usage.md
+++ b/docs/src/doc/docs/user_guide/gradle/usage.md
@@ -45,7 +45,7 @@ If you encounter any problems when migrating from older versions of Dokka, pleas
Minimal configuration (with custom output directory only):
-Kotlin
+Kotlin DSL
```kotlin
tasks.dokkaHtml.configure {
outputDirectory.set(buildDir.resolve("dokka"))
@@ -53,10 +53,10 @@ tasks.dokkaHtml.configure {
```
-Groovy
-```kotlin
-tasks.named("dokkaHtml") {
- outputDirectory.set(buildDir.resolve("dokka"))
+Groovy DSL
+```groovy
+dokkaHtml {
+ outputDirectory.set(file("${buildDir}/dokka"))
}
```
@@ -370,4 +370,4 @@ tasks.dokkaHtmlPartial.configure {
Please see the [Dokka Gradle single module example project](https://github.com/Kotlin/dokka/tree/master/examples/gradle/dokka-gradle-example) or [multimodule](https://github.com/Kotlin/dokka/tree/master/examples/gradle/dokka-multimodule-example) for an example.
-Also see [generated documentation](https://Kotlin.github.io/dokka/examples/dokka-gradle-example/html) in `HTML` format. \ No newline at end of file
+Also see [generated documentation](https://Kotlin.github.io/dokka/examples/dokka-gradle-example/html) in `HTML` format.