aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md48
1 files changed, 48 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7722b8ca3..68d82aab6 100644
--- a/README.md
+++ b/README.md
@@ -106,3 +106,51 @@ Build dokka and install maven plugin (do not require maven installed)
```bash
ant build-and-install
```
+
+### Using Maven plugin
+
+Minimal maven configuration is
+
+```xml
+<plugin>
+ <groupId>org.jetbrains.dokka</groupId>
+ <artifactId>dokka-maven-plugin</artifactId>
+ <version>${dokka.version}</version>
+ <executions>
+ <execution>
+ <phase>pre-site</phase>
+ <goals>
+ <goal>dokka</goal>
+ </goals>
+ </execution>
+ </executions>
+</plugin>
+```
+
+by default files will be generated in `target/dokka`
+
+Configuring source links mapping
+
+```xml
+<plugin>
+ <groupId>org.jetbrains.dokka</groupId>
+ <artifactId>dokka-maven-plugin</artifactId>
+ <version>${dokka.version}</version>
+ <executions>
+ <execution>
+ <phase>pre-site</phase>
+ <goals>
+ <goal>dokka</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <sourceLinks>
+ <link>
+ <dir>${project.basedir}/src/main/kotlin</dir>
+ <url>http://github.com/me/myrepo</url>
+ </link>
+ </sourceLinks>
+ </configuration>
+</plugin>
+``` \ No newline at end of file