From 8c7ab58f9e2adcf86a7da4697c99dde38db91ac8 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Thu, 22 Apr 2021 01:54:30 +0200 Subject: Update documentation for 1.4.32 --- docs/src/doc/docs/community/plugins-list.md | 8 ++-- docs/src/doc/docs/user_guide/gradle/usage.md | 47 ++++++++++------------ docs/src/doc/docs/user_guide/maven/usage.md | 13 ++++-- .../doc/docs/user_guide/versioning/versioning.md | 2 +- 4 files changed, 35 insertions(+), 35 deletions(-) (limited to 'docs/src/doc') 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("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().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("" to """ - jcenter - JCenter - https://jcenter.bintray.com/ + kotlinx-html + KotlinxHtmlSpace + https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven/ ``` @@ -73,6 +74,10 @@ The available configuration options are shown below: default + + + false + 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. -- cgit