dokka icon indicating copy to clipboard operation
dokka copied to clipboard

Reference to type `Nothing` leads to 404

Open DanySK opened this issue 3 years ago • 4 comments

Describe the bug References to Nothing link to a non existing page: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-nothing/

Expected behaviour

Dokka Links https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-nothing.html

To Reproduce Create a class taking Nothing as argument and return type, and generate the HTML documentation

Installation

  • Operating system: Linux
  • Build tool: Gradle v7.3.3
  • Dokka version: 1.6.10

Are you willing to provide a PR? Yes, if guided

DanySK avatar Jan 22 '22 18:01 DanySK

/**
 * [Nothing] is wrong!
 */
class Foo

^ this indeed references a non-existing page for some reason

cc @ilya-g JFYI

IgnatBeresnev avatar Mar 08 '23 03:03 IgnatBeresnev

@IgnatBeresnev Dokka writes / instead of .html at the end of the string.

DanySK avatar Mar 08 '23 07:03 DanySK

The same issue also affects EnumEntries. The link in Dokka: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.enums/-enum-entries/index.html The valid link: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.enums/-enum-entries.html

atyrin avatar Jul 25 '23 13:07 atyrin

This should be fixed when stdlib is migrated to the latest version of Dokka.

IgnatBeresnev avatar Dec 20 '23 11:12 IgnatBeresnev