[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7334":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":7,"languages":10,"totalLinesOfCode":10,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":15,"starSnapshotCount":15,"syncStatus":18,"lastSyncTime":31,"discoverSource":32},7334,"dokka","Kotlin\u002Fdokka","Kotlin","API documentation engine for Kotlin","https:\u002F\u002Fkotl.in\u002Fdokka",null,3778,492,70,598,0,5,10,2,63.58,"Apache License 2.0",false,"master",true,[25,26,5,27],"api-reference","documentation","kotlin","2026-06-12 04:00:33","# Dokka \n\n[![Kotlin Beta](https:\u002F\u002Fkotl.in\u002Fbadges\u002Fbeta.svg)](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fcomponents-stability.html)\n[![JetBrains official project](https:\u002F\u002Fjb.gg\u002Fbadges\u002Fofficial.svg)](https:\u002F\u002Fgithub.com\u002FJetBrains#jetbrains-on-github)\n[![Maven Central](https:\u002F\u002Fimg.shields.io\u002Fmaven-central\u002Fv\u002Forg.jetbrains.dokka\u002Fdokka-gradle-plugin?label=MavenCentral&logo=apache-maven)](https:\u002F\u002Fcentral.sonatype.com\u002Fartifact\u002Forg.jetbrains.dokka\u002Fdokka-gradle-plugin)\n[![Gradle Plugin](https:\u002F\u002Fimg.shields.io\u002Fgradle-plugin-portal\u002Fv\u002Forg.jetbrains.dokka?label=Gradle&logo=gradle)](https:\u002F\u002Fplugins.gradle.org\u002Fplugin\u002Forg.jetbrains.dokka)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FKotlin\u002Fdokka.svg)](LICENSE.txt)\n[![Revved up by Develocity](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRevved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https:\u002F\u002Fge.jetbrains.com\u002Fscans?search.rootProjectNames=dokka)\n\nDokka is an API documentation engine for Kotlin.\n\nJust like Kotlin itself, Dokka supports mixed-language projects. It understands Kotlin's\n[KDoc comments](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fkotlin-doc.html#kdoc-syntax) and Java's\n[Javadoc comments](https:\u002F\u002Fwww.oracle.com\u002Ftechnical-resources\u002Farticles\u002Fjava\u002Fjavadoc-tool.html).\n\nDokka can generate documentation in multiple formats, including its own modern [HTML format](#html),\nmultiple flavors of [Markdown](#markdown), and Java's [Javadoc HTML](#javadoc).\n\nSome libraries that use Dokka for their API reference documentation:\n\n* [kotlinx.coroutines](https:\u002F\u002Fkotlinlang.org\u002Fapi\u002Fkotlinx.coroutines\u002Fkotlinx-coroutines-core\u002Fkotlinx.coroutines\u002F)\n* [Bitmovin](https:\u002F\u002Fcdn.bitmovin.com\u002Fplayer\u002Fandroid\u002F3\u002Fdocs\u002Findex.html)\n* [Hexagon](https:\u002F\u002Fhexagontk.com\u002Fstable\u002Fapi\u002F)\n* [Ktor](https:\u002F\u002Fapi.ktor.io\u002F)\n* [OkHttp](https:\u002F\u002Fsquare.github.io\u002Fokhttp\u002F5.x\u002Fokhttp\u002Fokhttp3\u002F)\n* [Gradle](https:\u002F\u002Fdocs.gradle.org\u002Fcurrent\u002Fkotlin-dsl\u002Findex.html)\n\nYou can run Dokka using [Gradle](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fdokka-gradle.html), \n[Maven](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fdokka-maven.html) or from the [command line](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fdokka-cli.html). \nIt is also [highly pluggable](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fdokka-plugins.html).\n\n## Documentation\n\nComprehensive documentation for Dokka is available on [kotlinlang.org](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fdokka-introduction.html)\n\n## Get started with Dokka\n\n### Gradle\n\n\u003Cdetails open>\n\u003Csummary>Kotlin DSL\u003C\u002Fsummary>\n\nApply the Gradle plugin for Dokka in the root build script of your project:\n\n```kotlin\nplugins {\n    id(\"org.jetbrains.dokka\") version \"2.2.0\"\n}\n```\n\nWhen documenting [multi-project](https:\u002F\u002Fdocs.gradle.org\u002Fcurrent\u002Fuserguide\u002Fmulti_project_builds.html) builds, you need \nto apply the Gradle plugin for Dokka within subprojects as well:\n\n```kotlin\nsubprojects {\n    apply(plugin = \"org.jetbrains.dokka\")\n}\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Groovy DSL\u003C\u002Fsummary>\n\nApply Gradle plugin for Dokka in the root project:\n\n```groovy\nplugins {\n    id 'org.jetbrains.dokka' version '2.2.0'\n}\n```\n\nWhen documenting [multi-project](https:\u002F\u002Fdocs.gradle.org\u002Fcurrent\u002Fuserguide\u002Fmulti_project_builds.html) builds, you need \nto apply the Gradle plugin for Dokka within subprojects as well:\n\n```groovy\nsubprojects {\n    apply plugin: 'org.jetbrains.dokka'\n}\n```\n\n\u003C\u002Fdetails>\n\nTo generate documentation, run the following Gradle tasks:\n\n* `dokkaHtml` for single-project builds\n* `dokkaHtmlMultiModule` for multi-project builds\n\nBy default, the output directory is set to `\u002Fbuild\u002Fdokka\u002Fhtml` and `\u002Fbuild\u002Fdokka\u002FhtmlMultiModule` respectively.\n\nTo learn more about the Gradle plugin for Dokka, see [documentation for Gradle](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fdokka-gradle.html).\n\n### Maven\n\nAdd the Dokka Maven plugin to the `plugins` section of your POM file:\n\n```xml\n\u003Cbuild>\n    \u003Cplugins>\n        \u003Cplugin>\n            \u003CgroupId>org.jetbrains.dokka\u003C\u002FgroupId>\n            \u003CartifactId>dokka-maven-plugin\u003C\u002FartifactId>\n            \u003Cversion>2.2.0\u003C\u002Fversion>\n            \u003Cexecutions>\n                \u003Cexecution>\n                    \u003Cphase>pre-site\u003C\u002Fphase>\n                    \u003Cgoals>\n                        \u003Cgoal>dokka\u003C\u002Fgoal>\n                    \u003C\u002Fgoals>\n                \u003C\u002Fexecution>\n            \u003C\u002Fexecutions>\n        \u003C\u002Fplugin>\n    \u003C\u002Fplugins>\n\u003C\u002Fbuild>\n```\n\nTo generate documentation, run the `dokka:dokka` goal.\n\nBy default, the output directory is set to `target\u002Fdokka`.\n\nTo learn more about using Dokka with Maven, see [documentation for Maven](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fdokka-maven.html).\n\n### CLI\n\nIt is possible to run Dokka from the command line without having to use any of the build tools, but it's more\ndifficult to set up and for that reason it is not covered in this section.\n\nPlease consult [documentation for the command line runner](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fdokka-cli.html)\nto learn how to use it.\n\n### Android\n\nIn addition to applying and configuring Dokka, you can apply Dokka's \n[Android documentation plugin](dokka-subprojects\u002Fplugin-android-documentation\u002FREADME.md),\nwhich aims to improve documentation experience on the Android platform:\n\n\u003Cdetails open>\n\u003Csummary>Gradle Kotlin DSL\u003C\u002Fsummary>\n\n```kotlin\ndependencies {\n    dokkaPlugin(\"org.jetbrains.dokka:android-documentation-plugin:2.2.0\")\n}\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Gradle Groovy DSL\u003C\u002Fsummary>\n\n```groovy\ndependencies {\n    dokkaPlugin 'org.jetbrains.dokka:android-documentation-plugin:2.2.0'\n}\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Maven\u003C\u002Fsummary>\n\n```xml\n\u003Cplugin>\n    \u003CgroupId>org.jetbrains.dokka\u003C\u002FgroupId>\n    \u003CartifactId>dokka-maven-plugin\u003C\u002FartifactId>\n    ...\n    \u003Cconfiguration>\n        \u003CdokkaPlugins>\n            \u003Cplugin>\n                \u003CgroupId>org.jetbrains.dokka\u003C\u002FgroupId>\n                \u003CartifactId>android-documentation-plugin\u003C\u002FartifactId>\n                \u003Cversion>2.2.0\u003C\u002Fversion>\n            \u003C\u002Fplugin>\n        \u003C\u002FdokkaPlugins>\n    \u003C\u002Fconfiguration>\n\u003C\u002Fplugin>\n```\n\n\u003C\u002Fdetails>\n\n## Output formats\n\n### HTML\n\nHTML is Dokka's default and recommended output format. You can see an example of the output by browsing documentation \nfor [kotlinx.coroutines](https:\u002F\u002Fkotlinlang.org\u002Fapi\u002Fkotlinx.coroutines\u002F).\n\nHTML format is configurable and, among other things, allows you to modify stylesheets, add custom image assets, change\nfooter message and revamp the structure of the generated HTML pages through templates.\n\nFor more details and examples, see [documentation for HTML format](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fdokka-html.html).\n\n### Markdown\n\nDokka is able to generate documentation in GitHub Flavored and Jekyll compatible Markdown. However, both of these\nformats are still in Alpha, so you might encounter bugs and migration issues.\n\nFor more details and examples, see [documentation for Markdown formats](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fdokka-markdown.html).\n\n### Javadoc\n\nDokka's Javadoc output format is a lookalike of Java's \n[Javadoc HTML format](https:\u002F\u002Fdocs.oracle.com\u002Fen\u002Fjava\u002Fjavase\u002F19\u002Fdocs\u002Fapi\u002Findex.html). This format is still in Alpha,\nso you might encounter bugs and migration issues.\n\nJavadoc format tries to visually mimic HTML pages generated by the Javadoc tool, but it's not a direct implementation \nor an exact copy. In addition, all Kotlin signatures are translated to Java signatures.\n\nFor more details and examples, see [documentation for Javadoc format](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fdokka-javadoc.html).\n\n## Dokka plugins\n\nDokka was built from the ground up to be easily extensible and highly customizable, which allows the community to \nimplement plugins for missing or very specific features that are not provided out of the box.\n\nLearn more about Dokka plugins and their configuration in [Dokka plugins](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fdokka-plugins.html).\n\nIf you want to learn how to develop Dokka plugins, see\n[Developer guides](https:\u002F\u002Fkotlin.github.io\u002Fdokka\u002F2.2.0\u002Fdeveloper_guide\u002Fintroduction\u002F).\n\nDokka allows you to extend its functionality by [configuring custom plugins](https:\u002F\u002Fgithub.com\u002FKotlin\u002Fdokka\u002Fblob\u002Fae3840edb4e4afd7b3e3768a5fddfe8ec0e08f31\u002Fexamples\u002Fgradle-v2\u002Fcustom-dokka-plugin-example\u002Fdemo-library\u002Fbuild.gradle.kts),\nwhich enable additional processing or modifications to the documentation generation process.\n\n## Community\n\nDokka has a dedicated `#dokka` channel in [Kotlin Community Slack](https:\u002F\u002Fkotl.in\u002Fslack)\nwhere you can chat about Dokka, its plugins and how to develop them, as well as get in touch with maintainers.\n\n## Building and Contributing\n\nSee [Contributing Guidelines](CONTRIBUTING.md)\n","Dokka 是一个为 Kotlin 项目设计的 API 文档生成引擎。它支持混合语言项目，能够理解 Kotlin 的 KDoc 注释和 Java 的 Javadoc 注释，从而可以为包含这两种语言的代码库生成文档。Dokka 支持生成多种格式的文档，包括现代 HTML、Markdown 和传统的 Javadoc HTML 等。此外，它还高度可插拔，允许用户通过 Gradle、Maven 或命令行轻松集成到现有工作流中。此工具非常适合需要为 Kotlin 或 Kotlin 与 Java 混合编写的库及应用程序提供清晰易读的 API 参考文档的开发者使用。","2026-06-11 03:11:48","top_language"]