aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDmitry Jemerov <intelliyole@gmail.com>2015-07-13 18:54:14 +0200
committerDmitry Jemerov <intelliyole@gmail.com>2015-07-13 18:54:14 +0200
commit1a79c5d46536f1140f6348868aa14974182114ba (patch)
tree19a27e45be309dfc3425088ce8db93811177b38f /README.md
parentdfa23a3ff1b15570102d4431b7bfc709efa16a52 (diff)
parent0352d46db95ba375daa523bd5ec6e2f6b27f81f8 (diff)
downloaddokka-1a79c5d46536f1140f6348868aa14974182114ba.tar.gz
dokka-1a79c5d46536f1140f6348868aa14974182114ba.tar.bz2
dokka-1a79c5d46536f1140f6348868aa14974182114ba.zip
Merge pull request #29 from cy6erGn0m/gradle-plugin
Gradle plugin
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
+```