diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2023-01-19 04:10:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 04:10:57 +0100 |
commit | 5eeb2bbeb8c71ae813808ee0e8d09293c4abe1c1 (patch) | |
tree | bb62ab50a59cbeca06de6fd1eb5c75ff27bc5bd0 /examples/gradle/dokka-kotlinAsJava-example | |
parent | 1fa8552994fb292729eca8c0de6a1561380b008c (diff) | |
download | dokka-5eeb2bbeb8c71ae813808ee0e8d09293c4abe1c1.tar.gz dokka-5eeb2bbeb8c71ae813808ee0e8d09293c4abe1c1.tar.bz2 dokka-5eeb2bbeb8c71ae813808ee0e8d09293c4abe1c1.zip |
Revise README documentation for examples and plugins (#2736)
Diffstat (limited to 'examples/gradle/dokka-kotlinAsJava-example')
-rw-r--r-- | examples/gradle/dokka-kotlinAsJava-example/README.md | 19 | ||||
-rw-r--r-- | examples/gradle/dokka-kotlinAsJava-example/build.gradle.kts | 2 | ||||
-rw-r--r-- | examples/gradle/dokka-kotlinAsJava-example/demo.png | bin | 0 -> 101974 bytes |
3 files changed, 20 insertions, 1 deletions
diff --git a/examples/gradle/dokka-kotlinAsJava-example/README.md b/examples/gradle/dokka-kotlinAsJava-example/README.md new file mode 100644 index 00000000..647b0e6d --- /dev/null +++ b/examples/gradle/dokka-kotlinAsJava-example/README.md @@ -0,0 +1,19 @@ +# Dokka Kotlin-as-Java plugin example + +This example demonstrates how you can apply a Dokka plugin in a simple Gradle project. + +In particular, it applies [Kotlin as Java](../../../plugins/kotlin-as-java) Dokka plugin that renders all +Kotlin signatures as Java signatures. + +You can see up-to-date documentation generated for this example on +[GitHub Pages](https://kotlin.github.io/dokka/examples/dokka-kotlinAsJava-example/html/index.html). + +![screenshot demonstration of output](demo.png) + +### Running + +Run `dokkaHtml` task to generate documentation for this example: + +```bash +./gradlew dokkaHtml +``` diff --git a/examples/gradle/dokka-kotlinAsJava-example/build.gradle.kts b/examples/gradle/dokka-kotlinAsJava-example/build.gradle.kts index 8150fdd1..d45be539 100644 --- a/examples/gradle/dokka-kotlinAsJava-example/build.gradle.kts +++ b/examples/gradle/dokka-kotlinAsJava-example/build.gradle.kts @@ -11,7 +11,7 @@ dependencies { implementation(kotlin("stdlib")) testImplementation(kotlin("test-junit")) - // Will apply the plugin to all dokka tasks + // Will apply the plugin to all Dokka tasks dokkaPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.7.20") // Will apply the plugin only to the `:dokkaHtml` task diff --git a/examples/gradle/dokka-kotlinAsJava-example/demo.png b/examples/gradle/dokka-kotlinAsJava-example/demo.png Binary files differnew file mode 100644 index 00000000..92f1170f --- /dev/null +++ b/examples/gradle/dokka-kotlinAsJava-example/demo.png |