-
Notifications
You must be signed in to change notification settings - Fork 1k
Dokka multiproject example using Gradle #103
base: master
Are you sure you want to change the base?
Dokka multiproject example using Gradle #103
Conversation
dokka { | ||
externalDocumentationLink { | ||
url = new URL("file://${project(":projectA").buildDir}/dokka/project-a/") | ||
packageListUrl = new URL(url, "package-list") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work when publishing this documentation online? Does this create relative URLs? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well actually that depends. Some links are created as relative, regardless of this config, but some are not. For example the "all types" page is created with absolute paths, but the links in specific class pages are created with relative paths. I think it'll change in future versions of Dokka.
As for the publishing - I think you can set the URL to your domain (http://example.com/...) and create package list URL with local path (file://projectname/...) and that should work.
I didn't test it, though
1533216
to
d7f388a
Compare
This fails for me when run locally.
|
The |
No description provided.