AJ Alt
12/15/2020, 6:18 PMdokkaHtml
to work? Following the docs (https://kotlin.github.io/dokka/1.4.20/user_guide/gradle/usage/#applying-plugins), I tried this in my build.kts:
plugins { id("org.jetbrains.dokka") version "1.4.20" }
tasks.dokkaHtml {
pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
customStyleSheets = listOf(file("my-stylesheet.css"))
}
}
But DokkaBase
and DokkaBaseConfiguration
don't resolve. Are the docs wrong, or am I misunderstanding them?Christian Sousa
12/23/2020, 3:16 PMGus
01/07/2021, 11:32 AMJulia Solonar
01/08/2021, 1:22 PMDClass
the list of child classes `DRI`(List of classes which extended current class)? And for DFunction
get the method DRI
, which was override by current method.
So If I have class :
class Fruit{
fun grow()
}
class Apple: Fruit{
override fun grow()
}
So, from DClass
of Fruit
I want to get info, that it was extended by Apple
.
And from DFunction
of Apple.grow()
that it overrode Fruit.grow()
.Matthew Burnard
01/12/2021, 6:00 AMHarald Pehl
01/12/2021, 6:24 AMmikehearn
01/12/2021, 3:08 PMelect
01/14/2021, 6:37 PMMike Hall
01/19/2021, 10:03 AMelect
02/01/2021, 2:28 PMHow may I do that?packs the output of thewithJavadocJar()
task, so you can override this task and run dokka insidejavadoc
elect
02/03/2021, 11:38 AMsettings.gradle.kts
suggested modification
how can it be?António Bastião
02/03/2021, 12:02 PMLukas K-G
02/04/2021, 10:22 AMperPackageOption
but the exception still occurs. I got it to work by “avoiding” the folder by adding all folders but this one to sourceRoots
but this is very tedious as I need to list all manually.
Is there a way to exclude a folder from dokka completely?Michal Klimczak
02/04/2021, 11:09 AMPre-generation validity check failed: Dokka Javadoc plugin currently does not support generating documentation for multiplatform project. Please, adjust your configuration
I was hoping that this config would work, but it doesn't
tasks {
dokkaJavadoc {
outputDirectory.set(project.rootProject.file("$buildDir/dokka"))
dokkaSourceSets {
named("commonMain") {
sourceRoots.from(kotlin.sourceSets.getByName("commonMain").kotlin.srcDirs)
}
}
}
}
elect
02/04/2021, 11:57 AMbuildSrc
the lambda passed on each dokkaSourceSets
doesnt get executed
dokkaHtml {
val f = File("$rootDir/src/main/kotlin")
println(f)
dokkaSourceSets.configureEach {
println("in")
println(sourceLinks)
sourceLink {
localDirectory.set(f)
println(localDirectory)
remoteUrl.set(URL("<https://github.com/kotlin-graphics/kotlin-unsigned/tree/master/src/main/kotlin>"))
remoteLineSuffix.set("#L")
}
}
// finalizedBy(netlifyBadge)
}
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?napperley
02/11/2021, 10:06 PMnapperley
02/12/2021, 12:04 AMPre-generation validity check failed: Dokka Javadoc plugin currently does not support generating documentation for multiplatform project.
Lee McLaughlin
02/15/2021, 9:14 PMdokkaHtml {
outputDirectory.set(new File(buildDir, "docs/htmldocs"))
dokkaSourceSets {
named("main") {
includeNonPublic.set(false)
// Emit warnings about not documented members. Applies globally, also can be overridden by packageOptions
reportUndocumented.set(true)
packageOptions {
prefix.set("health.waire.sdk.cdetect.internal")
// will match health.waire.sdk.cdetect.internal.bluetooth and all sub-packages of it
suppress.set(true)
}
// Allows to customize documentation generation options on a per-package basis
// Repeat for multiple packageOptions
perPackageOption {
prefix.set("health.waire.sdk.cdetect.internal") // will match kotlin and all sub-packages of it
suppress.set(true)
}
}
}
}
Zac Sweers
02/24/2021, 7:52 AMorg.jetbrains:markdown
(which dokka depends on) to maven central yesterday with the same version that's on jcenter. If you haven't set up your repo to only source it from jcenter, your builds will almost certainly break imminently if you don't have a cached version of the dep local. Easy way to test is ./gradlew help --refresh-dependencies
zsmb
02/24/2021, 8:36 AMPackages monthly outgoing traffic limit of 250.0 GB exceededhttps://maven.pkg.jetbrains.space/kotlin/p/dokka/dev/org/jetbrains/dokka/dokka-gradle-plugin
elect
02/25/2021, 3:48 PMorg.jetbrains.dokka:javadoc-plugin:1.4.20
depends on com.soywiz.korlibs.korte:korte-jvm:1.10.3
which can be found only on jcenter. And this is a problem since thas is gonna be closed soon
Any alternatives?Paul Woitaschek
03/01/2021, 2:57 PMeygraber
03/02/2021, 6:10 AMoutputDirectory.set(buildDir.resolve("dokka"))
But I keep getting an error using Gradle 6.8.3:
A problem occurred configuring project ':common'.
> Could not create task ':common:androidJavadocsJar'.
> Could not create task of type 'AndroidJavadocsJar'.
> Could not create task ':common:dokkaHtml'.
> No signature of method: java.io.File.resolve() is applicable for argument types: (String) values: [dokka]
Drew Hamilton
03/02/2021, 2:47 PMdokkaHtml
output for my Gradle Android library module and I can’t get it to work. The file is generated in build/generated/source/myDir/main
, is added to android.sourceSets.main.java.srcDirs
, and is used in source code which successfully compiles.
I’ve tried a bunch of different permutations of configuration that looks like this:
dokkaHtml {
dokkaSourceSets {
configureEach {
jdkVersion.set 8
logger.lifecycle "$project adding sourceRoot $myDirRoot"
sourceRoot.from(file(stringsRoot))
}
}
}
With this exact configuration, :myModule:dokkaHtml
fails due to “> NamedDomainObjectContainer#create(String) on GradleDokkaSourceSetBuilder container cannot be executed in the current context.” If I use sourceRoot(
(without the .from
), it doesn’t fail, but the generated class still doesn’t appear in the docs.
I’ve also tried adding it as a custom source set or setting myDirRoot
as an absolute or relative path, to no avail. Any clue what I’m doing wrong?AJ Alt
03/04/2021, 5:44 PMTobi
03/12/2021, 11:57 AMDokka 1.4.20
to generate a JavaDoc artifact for my Kotlin based Android library.
The basic setup I added is:
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?marco.lied
03/15/2021, 9:38 AM1.4.20
), which I try to migrate our 0.9.18
setup to:
The includes
are not used like in the old dokka before. We have a README.md
with the # Module <module-name>
tag but the README.md
seems not to be parsed and added tot the dokka outout.
No matter if I use includes.setFrom(files("README.md"))
or includes.from(files("README.md"))
Can I somehow trace if the README.md
is used correctly? --debug
does not report any meaningful information hereLukas K-G
03/16/2021, 6:59 AM1.4.30
is release. 🎉 So much nice stuff in there.zsmb
03/16/2021, 8:15 AMzsmb
03/16/2021, 8:15 AMaudriusk
03/16/2021, 9:23 AMorg.jetbrains.dokka.gradle.plugin
and exist at https://search.maven.org/artifact/org.jetbrains.dokka/org.jetbrains.dokka.gradle.plugin/1.4.30/jarzsmb
03/16/2021, 9:27 AM