Aggregating Dokka HTML in root project results in 404s when clicking on root project #3992
Labels
bug
format: html
An issue/PR related to Dokka's default HTML output format
runner: gradle plugin v2
Issues fixed by Dokka Gradle Plugin v2 - see https://github.com/Kotlin/dokka/issues/3131
runner: Gradle plugin
An issue/PR related to Dokka's Gradle plugin
Aggregating Dokka HTML in root project results in 404s when clicking on root project
Reproduce
Modify https://github.com/Kotlin/dokka/tree/v2.0.0/examples/gradle-v2/multimodule-example
Add a Kotlin class to the root project
src/main/kotlin/RootClass.kt
Aggregate in the root project:
Run
./gradlew :dokkaGen
Error
The HTML homepage looks correct (with URL
http://localhost:63342/dokka/examples/gradle-v2/multimodule-example/build/dokka/html/index.html
), and contains the root project (named multimodule-example)However, clicking on multimodule-example results in a 404.
Note that the 404ing URL has a double slash
//
and/html/
is missing.http://localhost:63342/dokka/examples/gradle-v2/multimodule-example/build/dokka//index.html
Workaround
To workaround specify
modulePath
in the root project:Additional context
The text was updated successfully, but these errors were encountered: