aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorSergey Mashkov <sergey.mashkov@jetbrains.com>2015-07-10 18:57:17 +0300
committerSergey Mashkov <sergey.mashkov@jetbrains.com>2015-07-13 17:59:34 +0300
commitb166d2ec2418f184ad31159c4307ae858193871f (patch)
treee6b105e61af767a1f151f8698ded71f654abce40 /README.md
parentd9e7b5a0a4706669819e91dd19404891f437e6d8 (diff)
downloaddokka-b166d2ec2418f184ad31159c4307ae858193871f.tar.gz
dokka-b166d2ec2418f184ad31159c4307ae858193871f.tar.bz2
dokka-b166d2ec2418f184ad31159c4307ae858193871f.zip
Gradle plugin getting started
Diffstat (limited to 'README.md')
-rw-r--r--README.md36
1 files changed, 35 insertions, 1 deletions
diff --git a/README.md b/README.md
index 68d82aab..61849bda 100644
--- a/README.md
+++ b/README.md
@@ -153,4 +153,38 @@ Configuring source links mapping
</sourceLinks>
</configuration>
</plugin>
-``` \ No newline at end of file
+```
+
+### Using Gradle plugin
+
+```groovy
+buildscript {
+ repositories {
+ mavenLocal()
+ jcenter()
+ }
+ dependencies {
+ classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.1-SNAPSHOT"
+ }
+}
+
+apply plugin: 'org.jetbrains.dokka'
+```
+
+To configure plugin use dokka lambda in the root scope. For example:
+
+```groovy
+dokka {
+ linkMapping {
+ dir = "src/main/kotlin"
+ url = "https://github.com/cy6erGn0m/vertx3-lang-kotlin/blob/master/src/main/kotlin"
+ suffix = "#L"
+ }
+}
+```
+
+To get it generated use gradle `dokka` task
+
+```bash
+./gradlew dokka
+```