Open
Description
Describe the bug
Default values defined with named constants aren't rendered as links.
Expected behaviour
Default values definde with named constants should be possible to reference in a single click.
Screenshots
https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.io/buffered.html
To Reproduce
- Define a public named constant e.g. DEFAULT_BUFFER_SIZE.
- Define a public function where this default value is used for one of the parameter.
- Render the documentation.
Dokka configuration
Since the problem is reproducible for the kotlin stdlib docs, its configuration could be used as well:
https://github.com/JetBrains/kotlin/blob/7df6d94b9ee3dd27b649fdca717fadef4c93183a/libraries/tools/kotlin-stdlib-docs/gradle.properties#L3
public inline fun InputStream.buffered(bufferSize: Int = DEFAULT_BUFFER_SIZE): BufferedInputStream =
if (this is BufferedInputStream) this else BufferedInputStream(this, bufferSize)
Installation
- Dokka version: 2.0.20-dev-369