From 53b5b0aef9ba3555b05556a0265739a4b8c38add Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Mon, 26 Jun 2017 19:55:21 +0300 Subject: [PATCH] Update README.md --- README.md | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d766f1d5af..0c90b99491 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: some/out/dir + + + default + @@ -346,6 +359,7 @@ The Ant task supports the following attributes: * `noStdlibLink` - No default documentation link to kotlin-stdlib * `` - 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