aboutsummaryrefslogtreecommitdiff
path: root/docs/src/doc
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2021-04-22 01:54:30 +0200
committerKamil Doległo <kamilok1965@interia.pl>2021-04-22 01:54:30 +0200
commit8c7ab58f9e2adcf86a7da4697c99dde38db91ac8 (patch)
treee04e62a296fdfa4312e37a2ec347684070e9a5b7 /docs/src/doc
parentdb337c6b489d41f7c62bc44f9edb3e5eaa62e0d5 (diff)
downloaddokka-8c7ab58f9e2adcf86a7da4697c99dde38db91ac8.tar.gz
dokka-8c7ab58f9e2adcf86a7da4697c99dde38db91ac8.tar.bz2
dokka-8c7ab58f9e2adcf86a7da4697c99dde38db91ac8.zip
Update documentation for 1.4.32
Diffstat (limited to 'docs/src/doc')
-rw-r--r--docs/src/doc/docs/community/plugins-list.md8
-rw-r--r--docs/src/doc/docs/user_guide/gradle/usage.md47
-rw-r--r--docs/src/doc/docs/user_guide/maven/usage.md13
-rw-r--r--docs/src/doc/docs/user_guide/versioning/versioning.md2
4 files changed, 35 insertions, 35 deletions
diff --git a/docs/src/doc/docs/community/plugins-list.md b/docs/src/doc/docs/community/plugins-list.md
index 92b4c3c1..5274a4ed 100644
--- a/docs/src/doc/docs/community/plugins-list.md
+++ b/docs/src/doc/docs/community/plugins-list.md
@@ -9,7 +9,7 @@ In order to add your plugin to this list it needs to be:
| Plugin name | Description | Source |
| :--------- | :--------- | :------------ |
-| [Kotlin as Java](https://kotlin.github.io/dokka/1.4.30/user_guide/introduction/#plugins) | Display Kotlin code as seen from Java | [Github](https://github.com/Kotlin/dokka/tree/master/plugins/kotlin-as-java)
-| [GFM](https://kotlin.github.io/dokka/1.4.30/user_guide/introduction/#plugins) | Renders documentation in a GFM format | [Github](https://github.com/Kotlin/dokka/tree/master/plugins/gfm)
-| [Javadoc](https://kotlin.github.io/dokka/1.4.30/user_guide/introduction/#plugins) | Renders documentation in a Javadoc format | [Github](https://github.com/Kotlin/dokka/tree/master/plugins/javadoc)
-| [Jekyll](https://kotlin.github.io/dokka/1.4.30/user_guide/introduction/#plugins) | Renders documentation in a Jekyll format | [Github](https://github.com/Kotlin/dokka/tree/master/plugins/jekyll)
+| [Kotlin as Java](https://kotlin.github.io/dokka/1.4.32/user_guide/introduction/#plugins) | Display Kotlin code as seen from Java | [Github](https://github.com/Kotlin/dokka/tree/master/plugins/kotlin-as-java)
+| [GFM](https://kotlin.github.io/dokka/1.4.32/user_guide/introduction/#plugins) | Renders documentation in a GFM format | [Github](https://github.com/Kotlin/dokka/tree/master/plugins/gfm)
+| [Javadoc](https://kotlin.github.io/dokka/1.4.32/user_guide/introduction/#plugins) | Renders documentation in a Javadoc format | [Github](https://github.com/Kotlin/dokka/tree/master/plugins/javadoc)
+| [Jekyll](https://kotlin.github.io/dokka/1.4.32/user_guide/introduction/#plugins) | Renders documentation in a Jekyll format | [Github](https://github.com/Kotlin/dokka/tree/master/plugins/jekyll)
diff --git a/docs/src/doc/docs/user_guide/gradle/usage.md b/docs/src/doc/docs/user_guide/gradle/usage.md
index d7210849..e9a8c399 100644
--- a/docs/src/doc/docs/user_guide/gradle/usage.md
+++ b/docs/src/doc/docs/user_guide/gradle/usage.md
@@ -4,26 +4,22 @@
If you are upgrading from 0.10.x to a current release of Dokka, please have a look at our
[migration guide](https://github.com/Kotlin/dokka/blob/master/runners/gradle-plugin/MIGRATION.md)
-The preferred way is to use `plugins` block. Since Dokka is currently not published to the Gradle plugin portal,
-you not only need to add `dokka` to the `build.gradle.kts` file, but you also need to modify the `settings.gradle.kts` file:
+The preferred way is to use `plugins` block. One dependency (`kotlinx.html`) is not yet published to MavenCentral,
+so in order to properly resolve it, you have to add JetBrains's Space repository to your project's repositories:
build.gradle.kts:
```kotlin
plugins {
- id("org.jetbrains.dokka") version "1.4.30"
+ id("org.jetbrains.dokka") version "1.4.32"
}
repositories {
- jcenter()
- /*
- Or:
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") {
content {
includeGroup("org.jetbrains.kotlinx")
}
}
- */
}
```
@@ -33,24 +29,16 @@ eg. you'll have to use `named<DokkaTask>("dokkaHtml")` instead of `dokkaHtml`:
```kotlin
buildscript {
- repositories {
- jcenter()
- }
dependencies {
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}")
}
}
repositories {
- jcenter()
- /*
- Or:
- mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") {
content {
includeGroup("org.jetbrains.kotlinx")
}
}
- */
}
apply(plugin="org.jetbrains.dokka")
@@ -105,6 +93,9 @@ dokkaHtml {
// Eg. using it you can suppress toString or equals functions but you can't suppress componentN or copy on data class. To do that use with suppressObviousFunctions
// Defaults to false
suppressInheritedMembers.set(true)
+
+ // Used to prevent resolving package-lists online. When this option is set to true, only local files are resolved
+ offlineMode.set(false)
dokkaSourceSets {
configureEach { // Or source set name, for single-platform the default source sets are `main` and `test`
@@ -114,9 +105,6 @@ dokkaHtml {
// Used to remove a source set from documentation, test source sets are suppressed by default
suppress.set(false)
-
- // Used to prevent resolving package-lists online. When this option is set to true, only local files are resolved
- offlineMode.set(false)
// Use to include or exclude non public members
includeNonPublic.set(false)
@@ -254,11 +242,11 @@ tasks.withType<DokkaTask>().configureEach {
If you want to share the configuration between source sets, you can use Gradle's `configureEach`
## Applying plugins
-Dokka plugin creates Gradle configuration for each output format in the form of `dokka${format}Plugin`:
+Dokka plugin creates Gradle configuration for each output format in the form of `dokka${format}Plugin` (or `dokka${format}PartialPlugin` for multi-module tasks) :
```kotlin
dependencies {
- dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.4.30")
+ dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.4.32")
}
```
@@ -267,7 +255,7 @@ You can also create a custom Dokka task and add plugins directly inside:
```kotlin
val customDokkaTask by creating(DokkaTask::class) {
dependencies {
- plugins("org.jetbrains.dokka:kotlin-as-java-plugin:1.4.30")
+ plugins("org.jetbrains.dokka:kotlin-as-java-plugin:1.4.32")
}
}
```
@@ -303,16 +291,18 @@ pluginsMapConfiguration.set(mapOf("<fully qualified plugin's name>" to """<json
```kotlin
buildscript {
- repositories {
- jcenter()
- }
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}")
}
}
repositories {
- jcenter()
+ mavenCentral()
+ maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") {
+ content {
+ includeGroup("org.jetbrains.kotlinx")
+ }
+ }
}
apply(plugin= "com.android.library")
apply(plugin= "kotlin-android")
@@ -331,6 +321,11 @@ dokkaHtml.configure {
## Multi-module projects
For documenting Gradle multi-module projects, you can use `dokka${format}MultiModule` tasks.
+Dokka plugin adds `dokkaHtmlMultiModule`, `dokkaGfmMultiModule` and `dokkaJekyllMultiModule` tasks to
+all Gradle parent projects (all projects that have some child projects) as well as
+`dokkaHtmlPartial`, `dokkaGfmPartial` and `dokkaJekyllPartial` to all projects that have a parent.
+If you want eg. to add an external link to some dependency you should do so in respective `dokka${format}Partial` tasks,
+or configure them all at once using the `subprojects` block and `configureEach` method.
```kotlin
tasks.dokkaHtmlMultiModule.configure {
@@ -338,7 +333,7 @@ tasks.dokkaHtmlMultiModule.configure {
}
```
-`DokkaMultiModule` depends on all Dokka tasks in the subprojects named `dokka${format}Partial`, runs them, and creates a toplevel page
+`DokkaMultiModule` depends on all Dokka tasks in the subprojects named `dokka${format}Partial`, runs them, and creates a top-level page
with links to all generated (sub)documentations. It is possible to configure each of them:
```kotlin
tasks.dokkaHtmlPartial.configure {
diff --git a/docs/src/doc/docs/user_guide/maven/usage.md b/docs/src/doc/docs/user_guide/maven/usage.md
index 0290d2f7..586f5f0c 100644
--- a/docs/src/doc/docs/user_guide/maven/usage.md
+++ b/docs/src/doc/docs/user_guide/maven/usage.md
@@ -3,14 +3,15 @@
!!! note
Dokka Maven plugin does not support multi-platform projects.
-The Maven plugin is available in JCenter. You need to add the JCenter repository to the list of plugin repositories if it's not there:
+The Maven plugin does not support multi-platform projects. One dependency (`kotlinx.html`) is not yet published to MavenCentral,
+so in order to properly resolve it, you have to add JetBrains's Space repository to your project's `pluginRepositories`:
```xml
<pluginRepositories>
<pluginRepository>
- <id>jcenter</id>
- <name>JCenter</name>
- <url>https://jcenter.bintray.com/</url>
+ <id>kotlinx-html</id>
+ <name>KotlinxHtmlSpace</name>
+ <url>https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven/</url>
</pluginRepository>
</pluginRepositories>
```
@@ -73,6 +74,10 @@ The available configuration options are shown below:
<!-- When set to default, caches stored in $USER_HOME/.cache/dokka -->
<cacheRoot>default</cacheRoot>
+ <!-- Set to true to to prevent resolving package-lists online. -->
+ <!-- When this option is set to true, only local files are resolved, default: false -->
+ <offlineMode>false</offlineMode>
+
<!-- List of '.md' files with package and module docs -->
<!-- https://kotlinlang.org/docs/reference/kotlin-doc.html#module-and-package-documentation -->
<includes>
diff --git a/docs/src/doc/docs/user_guide/versioning/versioning.md b/docs/src/doc/docs/user_guide/versioning/versioning.md
index fac6b005..985fae56 100644
--- a/docs/src/doc/docs/user_guide/versioning/versioning.md
+++ b/docs/src/doc/docs/user_guide/versioning/versioning.md
@@ -67,4 +67,4 @@ Alternatively, without adding plugin to classpath:
pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.versioning.VersioningPlugin" to """{ "version": "1.0" }"""))
```
-Please consult [gradle documentation](../gradle/usage.md#applying-plugins) for more information about configuring Dokka with this build tool.
+Please consult the [Gradle documentation](../gradle/usage.md#applying-plugins) for more information about configuring Dokka with this build tool.