aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ogorodnik <sem-oro@yandex.ru>2017-06-26 19:55:21 +0300
committerGitHub <noreply@github.com>2017-06-26 19:55:21 +0300
commit53b5b0aef9ba3555b05556a0265739a4b8c38add (patch)
treeb7f83fb273681c0a6f82aae7e7c303b11a108cc0
parentec2f9aef111cd44eb7fb438c5fd03cf32be9eced (diff)
downloaddokka-53b5b0aef9ba3555b05556a0265739a4b8c38add.tar.gz
dokka-53b5b0aef9ba3555b05556a0265739a4b8c38add.tar.bz2
dokka-53b5b0aef9ba3555b05556a0265739a4b8c38add.zip
Update README.md
-rw-r--r--README.md28
1 files changed, 22 insertions, 6 deletions
diff --git a/README.md b/README.md
index d766f1d5..0c90b994 100644
--- a/README.md
+++ b/README.md
@@ -45,9 +45,10 @@ dokka {
outputFormat = 'html'
outputDirectory = "$buildDir/javadoc"
- // The list of configurations the dependencies of which
- // are included in Dokka's classpath for code analysis
- processConfigurations = ['compile', 'extra']
+ // These tasks will be used to determine source directories and classpath
+ kotlinTasks {
+ defaultKotlinTasks() + [':some:otherCompileKotlin', project("another").compileKotlin]
+ }
// List of files with module and package documentation
// http://kotlinlang.org/docs/reference/kotlin-doc.html#module-and-package-documentation
@@ -57,6 +58,11 @@ dokka {
samples = ['samples/basic.kt', 'samples/advanced.kt']
jdkVersion = 6 // Used for linking to JDK
+
+ // Use default or set to custom path to cache directory
+ // to enable package-list caching
+ // When set to default, caches stored in $USER_HOME/.cache/dokka
+ cacheRoot = 'default'
// Do not output deprecated members. Applies globally, can be overridden by packageOptions
skipDeprecated = false
@@ -68,13 +74,16 @@ dokka {
impliedPlatforms = ["JVM"] // See platforms section of documentation
- // By default, sourceRoots is taken from processConfigurations
+ // Manual adding files to classpath
+ // This property not overrides classpath collected from kotlinTasks but appends to it
+ classpath = [new File("$buildDir/other.jar")]
+
+ // By default, sourceRoots is taken from kotlinTasks, following roots will be appended to it
// Short form sourceRoots
sourceDirs = files('src/main/kotlin')
- // By default, sourceRoots is taken from processConfigurations
+ // By default, sourceRoots is taken from kotlinTasks, following roots will be appended to it
// Full form sourceRoot declaration
- // If specified, processConfigurations are NOT ignored, and sourceRoots are appended
// Repeat for multiple sourceRoots
sourceRoot {
// Path to source root
@@ -227,6 +236,10 @@ The available configuration options are shown below:
<!-- Default: ${project.basedir}/target/dokka -->
<outputDir>some/out/dir</outputDir>
+ <!-- Use default or set to custom path to cache directory to enable package-list caching. -->
+ <!-- When set to default, caches stored in $USER_HOME/.cache/dokka -->
+ <cacheRoot>default</cacheRoot>
+
<!-- List of '.md' files with package and module docs -->
<!-- http://kotlinlang.org/docs/reference/kotlin-doc.html#module-and-package-documentation -->
<includes>
@@ -346,6 +359,7 @@ The Ant task supports the following attributes:
* `noStdlibLink` - No default documentation link to kotlin-stdlib
* `<externalDocumentationLink url="https://example.com/docs/" packageListUrl="file:///home/user/localdocs/package-list"/>` -
linking to external documentation, packageListUrl should be used if package-list located not in standard location
+ * `cacheRoot` - Use `default` or set to custom path to cache directory to enable package-list caching. When set to `default`, caches stored in $USER_HOME/.cache/dokka
### Using the Command Line
@@ -368,6 +382,8 @@ Dokka supports the following command line arguments:
* `-packageOptions` - List of package options in format `prefix,-deprecated,-privateApi,+warnUndocumented;...`
* `-links` - External documentation links in format `url^packageListUrl^^url2...`
* `-noStdlibLink` - Disable documentation link to stdlib
+ * `-cacheRoot` - Use `default` or set to custom path to cache directory to enable package-list caching. When set to `default`, caches stored in $USER_HOME/.cache/dokka
+
### Output formats<a name="output_formats"></a>