The display name used to refer to the module. It is used for the table of contents, navigation, logging, etc.
If set for a single-project build or a MultiModule
task, it is used as the project name.
Default: Gradle project name
The module version. If set for a single-project build or a MultiModule
task, it is used as the
project version.
Default: Gradle project version
The directory to where documentation is generated, regardless of format. It can be set on a per-task basis.
The default is {project}/{buildDir}/{format}
, where {format}
is the task name with
the "dokka" prefix removed. For the dokkaHtmlMultiModule
task, it is
project/buildDir/htmlMultiModule
.
Whether to fail documentation generation if Dokka has emitted a warning or an error. The process waits until all errors and warnings have been emitted first.
This setting works well with reportUndocumented
.
Default: false
Whether to suppress obvious functions.
A function is considered to be obvious if it is:
kotlin.Any
, Kotlin.Enum
, java.lang.Object
or
java.lang.Enum
, such as equals
, hashCode
, toString
.
dataClass.componentN
or dataClass.copy
.
Default: true
Whether to suppress inherited members that aren't explicitly overridden in a given class.
Note: This can suppress functions such as equals
/ hashCode
/ toString
,
but cannot suppress synthetic functions such as dataClass.componentN
and
dataClass.copy
. Use suppressObviousFunctions
for that.
Default: false
Whether to resolve remote files/links over your network.
This includes package-lists used for generating external documentation links. For example, to make classes from the standard library clickable.
Setting this to true
can significantly speed up build times in certain cases,
but can also worsen documentation quality and user experience. For example, by
not resolving class/member links from your dependencies, including the standard library.
Note: You can cache fetched files locally and provide them to
Dokka as local paths. See externalDocumentationLinks
section.
Default: false
Whether this source set should be skipped when generating documentation.
Default: false
The display name used to refer to this source set.
The name is used both externally (for example, as source set name visible to documentation readers) and
internally (for example, for logging messages of reportUndocumented
).
By default, the value is deduced from information provided by the Kotlin Gradle plugin.
The set of visibility modifiers that should be documented.
This can be used if you want to document protected
/internal
/private
declarations,
as well as if you want to exclude public
declarations and only document internal API.
This can be configured on per-package basis.
Default: DokkaConfiguration.Visibility.PUBLIC
Whether to emit warnings about visible undocumented declarations, that is declarations without KDocs
after they have been filtered by documentedVisibilities
and other filters.
This setting works well with failOnWarning
.
This can be configured on per-package basis.
Default: false
Whether to skip packages that contain no visible declarations after various filters have been applied.
For example, if skipDeprecated
is set to true
and your package contains only
deprecated declarations, it is considered to be empty.
Default: true
Whether to document declarations annotated with @Deprecated
.
This can be configured on per-package basis.
Default: false
Whether to document/analyze generated files.
Generated files are expected to be present under the {project}/{buildDir}/generated
directory.
If set to true
, it effectively adds all files from that directory to the
suppressedFiles
option, so you can configure it manually.
Default: true
The JDK version to use when generating external documentation links for Java types.
For example, if you use java.util.UUID
in some public declaration signature,
and this option is set to 8
, Dokka generates an external documentation link
to JDK 8 Javadocs for it.
Default: JDK 8
The Kotlin language version used for setting up analysis and @sample environment.
By default, the latest language version available to Dokka's embedded compiler is used.
The Kotlin API version used for setting up analysis and @sample environment.
By default, it is deduced from languageVersion
.
Whether to generate external documentation links that lead to the API reference documentation of Kotlin's standard library.
Note: Links are generated when noStdLibLink
is set to false
.
Default: false
Whether to generate external documentation links to JDK's Javadocs.
The version of JDK Javadocs is determined by the jdkVersion
option.
Note: Links are generated when noJdkLink
is set to false
.
Default: false
Whether to generate external documentation links to the Android SDK API reference.
This is only relevant in Android projects, ignored otherwise.
Note: Links are generated when noAndroidSdkLink
is set to false
.
Default: false
A list of Markdown files that contain module and package documentation.
The contents of the specified files are parsed and embedded into documentation as module and package descriptions.
See Dokka gradle example for an example of what it looks like and how to use it.
The platform to be used for setting up code analysis and @sample environment.
The default value is deduced from information provided by the Kotlin Gradle plugin.
The source code roots to be analyzed and documented.
Acceptable inputs are directories and individual .kt
/ .java
files.
By default, source roots are deduced from information provided by the Kotlin Gradle plugin.
The classpath for analysis and interactive samples.
This is useful if some types that come from dependencies are not resolved/picked up automatically.
This option accepts both .jar
and .klib
files.
By default, classpath is deduced from information provided by the Kotlin Gradle plugin.
A list of directories or files that contain sample functions which are referenced via the @sample KDoc tag.
The path to the local source directory. The path must be relative to the root of the current project.
The URL of the source code hosting service that can be accessed by documentation readers, like GitHub, GitLab, Bitbucket, etc. This URL is used to generate source code links of declarations.
The suffix used to append the source code line number to the URL. This helps readers navigate not only to the file, but to the specific line number of the declaration.
The number itself is appended to the specified suffix. For example,
if this option is set to #L
and the line number is 10, the resulting URL suffix
is #L10
.
Suffixes used by popular services:
#L
#L
#lines-
Default: #L
The regular expression that is used to match the package.
Default: .*
Whether this package should be skipped when generating documentation.
Default: false
Whether to document declarations annotated with @Deprecated
.
This can be configured on source set level.
Default: false
Whether to emit warnings about visible undocumented declarations, that is declarations without KDocs
after they have been filtered by documentedVisibilities
and other filters.
This setting works well with failOnWarning
.
This can be configured on source set level.
Default: false
The set of visibility modifiers that should be documented.
This can be used if you want to document protected
/internal
/private
declarations within this package,
as well as if you want to exclude public
declarations and only document internal API.
This can be configured on source set level.
Default: DokkaConfiguration.Visibility.PUBLIC
The root URL of documentation to link to. It must contain a trailing slash.
Dokka does its best to automatically find package-list
for the given URL,
and link declarations together.
If automatic resolution fails or if you want to use locally cached files instead,
consider setting the packageListUrl
option.
The exact location of a package-list
. This is an alternative to relying on Dokka
automatically resolving it.
Package lists contain information about the documentation and the project itself, such as module and package names.
This can also be a locally cached file to avoid network calls.