Hello! I’m migrating to Dokka v2 (2.0.0/2.1.0-Beta...
# dokka
g
Hello! I’m migrating to Dokka v2 (2.0.0/2.1.0-Beta), and when I use
./gradlew dokkaGenerate
in multi-module project, with:
Copy code
dependencies {
    dokka(project(":module-a"))
    dokka(project(":module-b"))
}
Everything is generated as expected. Unfortunately, the root - http://localhost:63342/MyProject/build/dokka/html/index.html -
index.html
and
navigation.html
only show the first module. If I open the file (not using localhost) I can navigate between modules because the
index.html
shows “All modules” but the
navigation.html
is not rendered. If I open the
navigation.html
file, the links for each module are correct. Any help?
e
Local files behaving differently is expected, web features like XHR/fetch don't work in files
👍 1
g
when published (via github-pages for example) everything is correct, but with dokka v1 I could test locally all the navigation that’s why I was asking 😊
going to the docs root and run:
python3 -m http.server 8080
makes it possible to test 👌
kodee happy 1
o
Dokka HTML output currently requires a web server, yeah: https://github.com/Kotlin/dokka/issues/1795