Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong Groovy DSL example #2302

Merged
merged 1 commit into from Jan 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/src/doc/docs/user_guide/gradle/usage.md
Expand Up @@ -45,18 +45,18 @@ 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"))
}
```


Groovy
```kotlin
tasks.named("dokkaHtml") {
outputDirectory.set(buildDir.resolve("dokka"))
Groovy DSL
```groovy
dokkaHtml {
outputDirectory.set(file("${buildDir}/dokka"))
}
```

Expand Down Expand Up @@ -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.
Also see [generated documentation](https://Kotlin.github.io/dokka/examples/dokka-gradle-example/html) in `HTML` format.