aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDmitry Jemerov <intelliyole@gmail.com>2016-01-12 13:53:18 +0100
committerDmitry Jemerov <intelliyole@gmail.com>2016-01-12 13:53:18 +0100
commitebdb4d43516a744bbc38f1dee2752e649c26f95d (patch)
tree5b285c29c476111cf0eb4baa82f00806ad37dfe6 /README.md
parent628356d63443b11ff2221707c54a397f548d38a4 (diff)
parentfc0f3f7574198851be009dd62c720b8372344c95 (diff)
downloaddokka-ebdb4d43516a744bbc38f1dee2752e649c26f95d.tar.gz
dokka-ebdb4d43516a744bbc38f1dee2752e649c26f95d.tar.bz2
dokka-ebdb4d43516a744bbc38f1dee2752e649c26f95d.zip
Merge pull request #48 from ingokegel/master
@Suppress("NOT_DOCUMENTED"), fix for linking to targets with underscores, gradle plugin improvements
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 18 insertions, 1 deletions
diff --git a/README.md b/README.md
index ed2f8975..f955a386 100644
--- a/README.md
+++ b/README.md
@@ -132,10 +132,17 @@ buildscript {
apply plugin: 'org.jetbrains.dokka'
```
-To configure plugin use dokka lambda in the root scope. For example:
+The plugin adds a task named "dokka" to the project. The available configuration
+options are shown below:
```groovy
dokka {
+ moduleName = 'data'
+ outputFormat = 'javadoc'
+ outputDirectory = "$buildDir/javadoc"
+ processConfigurations = ['compile', 'extra']
+ includes = ['packages.md', 'extra.md']
+ samples = ['samples/basic.kt', 'samples/advanced.kt']
linkMapping {
dir = "src/main/kotlin"
url = "https://github.com/cy6erGn0m/vertx3-lang-kotlin/blob/master/src/main/kotlin"
@@ -150,6 +157,16 @@ To get it generated use gradle `dokka` task
./gradlew dokka
```
+More dokka tasks can be added to a project like this:
+
+```groovy
+task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
+ outputFormat = 'javadoc'
+ outputDirectory = "$buildDir/javadoc"
+}
+```
+
+
Please see the [Dokka Gradle example project](https://github.com/JetBrains/kotlin-examples/tree/master/gradle/dokka-gradle-example) for an example.
## Dokka Internals