Brian Nicholson
04/28/2021, 8:10 PMbuild.gradle.kts
specifically for Dokka with a sourceSet
containing just the subdirectory I'm interested in, and it generates documentation, but the problem is that any dependency outside of my sourceSet
is shown as <ERROR CLASS>
. Obviously, Dokka can't generate docs for these classes since it can't resolve them, but is there there any way to get these class names to appear as text rather than an error? Ideally, I'd be able to link these classes to a URL containing their source code, but even just getting the raw text name would be a huge improvement. Any suggestions?Brian Nicholson
04/28/2021, 10:21 PMdependencies
in build.gradle
gets rid of the <ERROR CLASS>
and shows the class names as I wanted. Next question: is there any way to add external links to classes that aren't included in the documentation? That is, if documentation is generated for a class, link to it; otherwise, link to some URL as a fallback?Marcin Aman
04/29/2021, 12:39 PMexternalDocumentationLink {
// Root URL of the generated documentation to link with. The trailing slash is required!
url.set(URL("<https://example.com/docs/>"))
// If package-list file is located in non-standard location
// packageListUrl = URL("file:///home/user/localdocs/package-list")
}
Source: https://kotlin.github.io/dokka/1.4.32/user_guide/gradle/usage/#configuration-optionsBrian Nicholson
04/29/2021, 8:27 PMdokkaSourceSets
already, but it doesn't seem to have any effect. Just to confirm: if a class can't be found, it should fallback to the external URL, and all classes should be linked? This is what I'm seeing:Brian Nicholson
04/29/2021, 8:28 PMFragment
and HasDefaultViewModelProviderFactory
)