Skip to content

Default values defined with named constants aren't rendered as links #4070

Open
@YuryLapitsky-TomTom

Description

@YuryLapitsky-TomTom

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

Image

To Reproduce

  1. Define a public named constant e.g. DEFAULT_BUFFER_SIZE.
  2. Define a public function where this default value is used for one of the parameter.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions