Hello. I am trying (for the first time) to use `Do...
# dokka
t
Hello. I am trying (for the first time) to use
Dokka 1.4.20
to generate a JavaDoc artifact for my Kotlin based Android library. The basic setup I added is:
Copy code
apply plugin: "org.jetbrains.dokka"

// ...

task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
    group "publishing"
    description "Generates javadocJar based on Dokka"
    archiveClassifier.set("javadoc")
    from dokkaJavadoc.outputDirectory
}

dokkaJavadoc.configure {
    moduleName.set("Roadsigns")
    dokkaSourceSets {
        named("main") {
            sourceLink {
                localDirectory.set(file("roadsigns/src/main/kotlin"))
                remoteUrl.set(java.net.URL("<https://github.com/Umweltzone/roadsigns/blob/master/roadsigns/src/main/kotlin>"))
                remoteLineSuffix.set("#L")
            }
        }
    }
}
See the full configuration on this
dokka
branch: https://github.com/Umweltzone/roadsigns/blob/dokka/gradle/deploy.gradle#L69-L87 ▶️ I noticed that links to the GitHub sources and to the Android or Kotlin documentation are not present (see screenshot). My understand is that
noAndroidSdkLink
is disabled by default - meaning: if I do not configure it then there should be links to Android docs. What do I have to configure to generate them?
@zsmb Can you help out here?
k
Dokka currently only renders text here and not links. Can you please create an issue for this on the GitHub?
t
Where does
remoteUrl.set
come into usage?