sunnat629
12/01/2020, 6:33 AMdependencies {
dokkaJavadocPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.4.10.2")
}
dokkaJavadoc.configure {
dokkaSourceSets {
named("main") {
noAndroidSdkLink.set(false)
}
}
}
But I am facing problem when I add a class name from another package.
Here is one example -
Clicked Url should be: dokka/javadoc/com/nativewaves/livesdk/root/NWLive.html
but the url is: dokka/javadoc/com/nativewaves/livesdk/ui/com/nativewaves/livesdk/root/NWLive.html
and also when I use like -
/**
* @see [BaseViewModel.selectedAudioEntityId]
*/
and in the JavaDoc, there is no content. It just blank in the description column.
But in DokkaHtml, it’s working.
Thanks…Marcin Aman
12/01/2020, 3:48 PMadd a class name from another package
?
As for the @see
tag: dokka doesn't render some of the tags in javadoc format. As those tags are processed and are available in the model adding those wouldn't be hard. If you have some spare time we would be extremely grateful for a PR ☺️sunnat629
12/03/2020, 5:50 AMcom.nativewaves.livesdk.root.NwLive
from com.nativewaves.livesdk.ui.football.FootballPlaybackHandler
in the doc.
I am directly, sharing the comments -
/**
* [FootballPlaybackHandler] interface contains all the LiveData instances and functions
* It will directly communicate with [FootballPlaybackActivity] and [NWLive] to update the UI.
*/
Here [NWLive] is from another package/folder
In the JavaDoc, when I click the NwLive, it shows 404 with a wrong URL.sunnat629
12/03/2020, 5:51 AMMarcin Aman
12/03/2020, 12:51 PMsunnat629
12/03/2020, 1:09 PM./gradlew publishToMavenLocal
Thanks 🙂Marcin Aman
12/03/2020, 1:19 PM<dokka-version>-SNAPSHOT
right now the dokka version is 1.4.20, so the version should be 1.4.20-SNAPSHOT
. Please remember to have mavenLocal()
in your repositories.
I'd start by looking at the model of DocTag-s as they are an abstract representation of documentation. Later it will be nice to see how javadoc is rendered (start with JavadocPlugin
and org.jetbrains.dokka.javadoc.renderer
package. After that you should have a basic understanding of how dokka renders javadoc so adding a tag to be rendered is a matter of transforming DocTags to ContentNodes (see JavadocPageCreator
) and rendering it in Korte templates.
It is fine to be confused at first. We have a documentation about the model: https://kotlin.github.io/dokka/1.4.20/developer_guide/introduction/
And if you have more questions, I am here to helpsunnat629
12/03/2020, 1:27 PMMarcin Aman
12/03/2020, 5:09 PMsunnat629
12/08/2020, 10:12 AMsunnat629
12/08/2020, 10:33 AMMarcin Aman
12/09/2020, 8:42 AM