zsmb
02/10/2021, 12:54 PMView
and ViewGroup
have their own documentation on the Android Developer website, there’s no need to show their hundreds of methods in our docs. Our custom methods are essentially impossible to find this way.
I found an already open issue for this with no responses https://github.com/Kotlin/dokka/issues/1501
Any chance that this will be addressed soon, or is there any workaround to this problem?Lukas K-G
02/10/2021, 1:07 PMseparateInheritedMembers
that might help for now.
See here for documentation. Not sure in which release that will be.zsmb
02/10/2021, 1:09 PMLukas K-G
02/10/2021, 1:11 PMrepositories {
maven {
url "<https://dl.bintray.com/kotlin/kotlin-dev>"
}
}
to your maven repositories.implementation 'org.jetbrains.dokka:all-modules-page-plugin:1.4.20.2-dev-60'
zsmb
02/10/2021, 1:30 PMdokkaHtml.configure {
dokkaSourceSets {
configureEach {
separateInheritedMembers = true
}
}
}
But I still get all the superclass stuff in the same view.Lukas K-G
02/10/2021, 1:32 PMpluginsMapConfiguration
. Do you have .gradle
or .gradle.kts
?zsmb
02/10/2021, 1:32 PM.gradle
filesLukas K-G
02/10/2021, 1:33 PMpluginsMapConfiguration.set(
["org.jetbrains.dokka.base.DokkaBase": """{ "separateInheritedMembers": true}"""]
)
zsmb
02/10/2021, 1:36 PMLukas K-G
02/10/2021, 1:37 PMzsmb
02/10/2021, 1:38 PMLukas K-G
02/10/2021, 1:39 PMmaven {
url '<https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev>'
}
and
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.4.20.2-dev-62")
zsmb
02/10/2021, 1:55 PMdokkaHtml.configure {
pluginsMapConfiguration.set(
["org.jetbrains.dokka.base.DokkaBase": """{ "separateInheritedMembers": true}"""]
)
}
But I don’t get the separate tab yet 😞dokkaHtmlPartial
task insteadLukas K-G
02/10/2021, 2:00 PMtasks.withType(dokkaHtml.getClass()).configureEach {
dokkaSourceSets {
....
}
pluginsMapConfiguration.set(
[
"org.jetbrains.dokka.base.DokkaBase": """{ "separateInheritedMembers" : true, "customStyleSheets": ["${file("../documentation/logo-styles.css")}","${file("../documentation/styles.css")}"], "customAssets" : ["${file("../documentation/docs_logo.svg")}", "${file("../documentation/logo-icon.svg")}"]}"""
]
)
}
zsmb
02/10/2021, 2:10 PMLukas K-G
02/10/2021, 2:12 PMzsmb
02/10/2021, 2:42 PMgradlew dokkaHtmlMultimodule
which runs dokkaHtmlPartial
in each module, so I need either of these config blocks for this to work:
dokkaHtmlPartial.configure {
pluginsMapConfiguration.set(
["org.jetbrains.dokka.base.DokkaBase": """{ "separateInheritedMembers": true}"""]
)
}
tasks.withType(dokkaHtmlPartial.getClass()).configureEach {
pluginsMapConfiguration.set(
["org.jetbrains.dokka.base.DokkaBase": """{ "separateInheritedMembers": true}"""]
)
}
Lukas K-G
02/10/2021, 2:44 PMdokkaHtmlPartial.getClass()
is just a way to get the DokkaTask
class. I did not find any other solution. So this runs for all tasks of type DokkaTask
.zsmb
02/10/2021, 3:02 PMdokkaHtml.getClass()
or dokkaHtmlPartial.getClass()
, the former doesn’t workclass org.jetbrains.dokka.gradle.DokkaTask_Decorated
class org.jetbrains.dokka.gradle.DokkaTaskPartial_Decorated
Lukas K-G
02/10/2021, 3:03 PM