https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
dokka
  • a

    addamsson

    02/07/2020, 6:54 PM
    I'm looking at a dokka example project for MPP projects and I'm trying to figure out how to use this:
    val global by creating {
        // this is a special block for passing perPackageOptions,
        // externalDocumentationLinks and sourceLinks to all other platforms
        perPackageOption {
            // suppress a package on all platforms
            prefix = "shouldbesuppressed"
            suppress = true
        }
    }
    How do I add external documentation links and source links to other platforms?
    k
    • 2
    • 3
  • s

    Sylvain Patenaude

    02/07/2020, 7:33 PM
    Anyway to bold something in KDoc comments?
    c
    d
    • 3
    • 4
  • m

    mbonnin

    02/10/2020, 10:00 AM
    My CI fails on downloading https://kotlinlang.org/api/latest/jvm/stdlib/package-list. The exception is
    sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    , it seems to be a SSL error. Anyone knows how to fix this ?
    • 1
    • 2
  • a

    addamsson

    02/10/2020, 1:36 PM
    I'm trying to set up Dokka for my multimodule & multiplatform. This is the configuration I have in the root project. the kotlin multiplatform plugin is applied in all projects, and I only apply Dokka in the root:
    tasks {
        withType<DokkaTask> {
    
            outputFormat = "html"
            outputDirectory = "docs"
    
            subProjects = rootProject.childProjects.map { it.key }
            multiplatform {
                rootProject.childProjects.forEach { (name, project) ->
                    register(name) {
                        targets = listOf("JVM", "JS")
                        listOf("commonMain", "jvmMain", "jsMain").forEach { dir ->
                            val sourceDir = "${projectDir}/$name/src/$dir/kotlin"
                            if (File(sourceDir).exists()) {
                                sourceRoot {
                                    path = "${projectDir}/$name/src/$dir/kotlin"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    What am I doing wrong? I'm trying to register each module and their corresponding sources, but it is not working. The docs are generated but it is not grouped by subprojects and I also get hundreds of errors stating that
    Found an unresolved type
    and other errors stating that
    Cannot extract sources from subProjects. Do you have the Kotlin plugin in version 1.3.30+ and the Kotlin plugin applied in the root project?
    and
    Could not find target with name: myproject
    . How am I supposed to use Dokka for my setup?
    k
    • 2
    • 4
  • s

    Sylvain Patenaude

    02/10/2020, 4:54 PM
    Is there a way to specify where to output the generated documentation, for instance a url or a file share location?
    k
    • 2
    • 2
  • s

    SrSouza

    02/14/2020, 5:27 PM
    Hi guys, there is anyway to set a markdown page the main Dokka page? I have a README for that library and explain how to use it and I want to add to Dokka, is possible? I'm trying with includes but I don't know if this is the use case.
    c
    • 2
    • 1
  • s

    Sylvain Patenaude

    03/09/2020, 8:52 PM
    I'm using Dokka to generate doc. It works locally, but it fails when the project runs on the server (DevOps). Here is the error I get (see below). Someone has a clue? Do I need to specifically refer to 'dokka-fatjar' in my build.gradle or is
    plugins {
        ...
        id 'org.jetbrains.dokka' version '0.10.1'
        ...
    }
    enough?
    c
    • 2
    • 4
  • m

    mikehearn

    03/16/2020, 2:51 PM
    Looking through the Dokka issues list I see many, many tasks scheduled for 0.11.0. I would judge it may be many months until such a release sees the light of day and can begin being tested by the community.
    k
    • 2
    • 3
  • m

    mikehearn

    03/16/2020, 2:52 PM
    Meanwhile the community is suffering from some major issues like not working on Java 11, bugs, etc. Is there a way to reduce the scope of 0.11 and stabilise what's been done so far, or at least prioritise keeping it maintained and working on newest JDKs?
    👆 1
    k
    s
    • 3
    • 2
  • c

    cypher121

    03/17/2020, 3:48 PM
    what could be causing this warning and should I be worried about it?
    > Task :genJavadoc
    WARN: Failed to initialize native filesystem for Windows
    java.lang.RuntimeException: Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory.
    the file is, in fact, present, although I have no clue why it's even trying to get there
    k
    b
    • 3
    • 2
  • p

    PabloCasia

    04/15/2020, 8:11 AM
    Hi, how can I get the output with better format?, like the attached screenshot I'm looking in the docs but nothing found about css edit or similar
    j
    c
    m
    • 4
    • 5
  • b

    bjonnh

    04/19/2020, 4:43 PM
    Anybody tried dokka 0.11.0 (git) see if it can build for JDK>8 already?
    r
    • 2
    • 3
  • z

    Zach Klippenstein (he/him) [MOD]

    05/05/2020, 8:07 PM
    I feel like I am probably doing something wrong, but it seems like the
    dokka
    task created by the plugin requires jars to be assembled, however it does not actually seem to configure the gradle dependency graph correctly because if I run
    dokka
    after a
    clean
    I get errors about jars not being found for depended-on modules. I’m using dokka 0.10.0 with gradle 6.3 on a multi-module project. Is it expected to have to configure these dependencies manually?
    c
    • 2
    • 3
  • o

    Ola Adolfsson

    05/07/2020, 1:22 PM
    Hi all, im looking for public projects that have used Dokka for documentation. Are you aware of any?
    j
    c
    +2
    • 5
    • 6
  • e

    evanchooly

    05/11/2020, 4:57 PM
    It looks like dokka 0.10 won’t run on anything post Java 9 and 0.11.0-dev-41 gives me errors about multiple extensions being registered even without any explicit configuration in my pom. any suggestions on how to resolve this?
    b
    • 2
    • 14
  • r

    Rob Zienert

    05/28/2020, 5:27 PM
    Is Dokka abandoned? Not really much activity going on. Is there an alternative to Dokka out there, I haven’t been able to find anything
    c
    s
    • 3
    • 9
  • s

    simon.vergauwen

    05/28/2020, 5:43 PM
    Dokka is being redesigned, there is a talk about it next week @ Kotliners
    r
    z
    • 3
    • 4
  • p

    Paweł Marks

    05/29/2020, 10:27 AM
    I want to confidently assure you all that Dokka as a project is not abandoned. The opposite is true. The team working on it right now is the biggest it has ever been. Dokka started as a rather small project but quickly grew as there always has been a demand for new features. Adding support for multiplatform projects was a straw that broke the camel’s back. Right now, Dokka is undergoing a long-overdue major rewrite. You can track its progress on the dev-0.11.0 branch and get dev releases - published at least once every two weeks - from a public bintray. All major features are already in place. The only thing missing from the dev releases right now is Javadoc support, which we are working on right now and should be available in a week or two. Our frontend is also undergoing rapid changes right now, so you may be sure to get better and better-looking documentation with every new snapshot. Nevertheless, I can confidently say that we are on the final stretch. I cannot promise any release date, as right now, as we are part of the kotlin release cycle, so there are many factors outside of our team knowledge and influence. However, I can assure you that you will soon get the best looking, most consistent, and flexible Dokka release ever.
    👏 14
    ❤️ 7
    🎉 8
    g
    b
    +3
    • 6
    • 9
  • e

    Ellen Spertus

    06/02/2020, 7:42 PM
    I don’t know gradle well enough to configure the latest dev version of dokka (which I’d like to do since the release version didn’t work for me). I added this to my module’s
    build.gradle
    file:
    implementation 'org.jetbrains.dokka:dokka-base:0.11.0-dev-45'
    but don’t know what else to add to get a dokka task.
    g
    a
    • 3
    • 7
  • z

    Zach Klippenstein (he/him) [MOD]

    06/05/2020, 4:54 PM
    I’m watching the Dokka talk from the Kotliners conference – wow! The new dokka is super cool.
    :kotlin: 7
    j
    s
    +3
    • 6
    • 8
  • b

    bsimmons

    06/17/2020, 12:48 PM
    Hey all, so I'm new to dokka. I'm trying out the default html output format and I'm not sure that I like the format. (Some things aren't align and are hard to read, etc.) Is there any custom CSS or some alternative that styles everything more cleanly?
    z
    c
    • 3
    • 7
  • z

    Zach Klippenstein (he/him) [MOD]

    06/18/2020, 2:17 AM
    Will the new Dokka engine also eventually be used in the Kotlin IntelliJ plugin to render documentation in the IDE? Any chance that will be available in Kotlin 1.4?
    ➕ 1
    p
    • 2
    • 2
  • a

    Afzal Najam

    06/19/2020, 4:19 AM
    Hi! I'm trying to use Dokka 0.11.0-dev-45 build with an android library project but when I add it to the classpath, it starts giving errors about the android gradle plugin 😕 . When I comment out the Android gradle plugin id, it gives errors about not being able to find the kotlin-android plugin too.
    An exception occurred applying plugin request [id: 'com.android.library']
    > Failed to apply plugin [id 'com.android.internal.version-check']
       > Could not create plugin of type 'VersionCheckPlugin'.
          > Could not initialize class com.android.build.gradle.internal.plugins.VersionCheckPlugin
    any idea why this might be? I had two modules (app and lib, but I've removed the app module since). Would really appreciate it because I would like to figure out a way to do ((or contribute) an output format that does Markdown with Java signatures using Dokka 🙂. Thanks
    s
    z
    • 3
    • 18
  • h

    Halil Ozercan

    07/01/2020, 8:02 AM
    Hi! I’m evaluating Dokka for internal documentation of an Android project. My initial feeling has been highly positive thanks to gradle plugin. However, there is something that is really important to us that I couldn’t manage to do. There are multiple
    README.md
    files scattered around the project, mainly serving as package summaries. I want to include these markdown files, not necessarily named
    README
    , under package pages in Dokka. It should feel like browsing the project on Github. Is this at all possible or is there any other way that you would suggest?
    👀 1
    b
    a
    • 3
    • 3
  • p

    pedro

    07/08/2020, 4:52 PM
    Hi, I am using dokka 0.10.1 and I noticed that the file
    index-outline.html
    contains absolute links which means I can’t share this file (put it on github). It is the only file generated by dokka with absolute urls to my machine (
    /users/me/project/path/docfolder/module/index
    ). Is this working as intended? (Hopefully not, or there’s a config I missed) I found this PR which could be related: https://github.com/Kotlin/dokka/pull/325
    • 1
    • 2
  • b

    bjonnh

    07/08/2020, 6:20 PM
    I'm trying
    id("org.jetbrains.dokka") version "1.4.0-M3-dev-54"
    from https://dl.bintray.com/kotlin/kotlin-dev But I keep having an error from gradle: Could not find org.jetbrains.dokka:gradle-plugin:1.4.0-M3-dev-54
    s
    • 2
    • 2
  • s

    Sebastian Sellmair [JB]

    07/13/2020, 1:37 PM
    Hey 👋 We are currently updating the dokka examples inside the kotlin-examples repoistory. Is there anything you are interested in? Any configuration that we should show? The current PR only shows very basic examples. https://github.com/Kotlin/kotlin-examples/pull/127
    g
    z
    +2
    • 5
    • 17
  • j

    jaguililla

    07/14/2020, 8:22 PM
    Is it feasible? If not, do you know any other way of doing that even by the compiler, IntelliJ or any other tool?
    c
    s
    • 3
    • 10
  • s

    Sebastian Sellmair [JB]

    07/20/2020, 7:52 AM
    Out of curiosity: Would somebody be interested in nightly builds from the current development state?
    :yes: 8
    s
    a
    t
    • 4
    • 8
  • m

    msink

    07/27/2020, 10:24 AM
    Does latest Dokka support Kotlin/Native? Tried refreshing docs of kotlin-libui - too many errors, mostly <ERROR CLASS> everywhere. (To reproduce: run 
    ./gradlew -PpublishMode dokkaGfm
    )
    s
    b
    m
    • 4
    • 16
Powered by Linen
Title
m

msink

07/27/2020, 10:24 AM
Does latest Dokka support Kotlin/Native? Tried refreshing docs of kotlin-libui - too many errors, mostly <ERROR CLASS> everywhere. (To reproduce: run 
./gradlew -PpublishMode dokkaGfm
)
s

Sebastian Sellmair [JB]

07/27/2020, 11:57 AM
I will check your project out and see what is going on. The new dokka 1.4.0-rc+ is supporting kotlin/native as well as multiplatform projects. We have seen issues with resolving some types and are currently working on it.
Thanks for submitting your project, because we can now start debugging the issue with it ☺️
b

Big Chungus

07/29/2020, 2:56 PM
I'm facing same issues
m

Marcin Aman

07/29/2020, 4:16 PM
@Big Chungus Are you facing them with the same project or a different one? Is is also native?
b

Big Chungus

07/29/2020, 4:17 PM
It's an KMP project targeting js and wasm
m

Marcin Aman

07/29/2020, 4:18 PM
Is this project publicly available? Can we take a look?
b

Big Chungus

07/29/2020, 4:18 PM
Just run dokka html multimodule on kvdom module here https://gitlab.com/lt.petuska/kvdom/-/tree/feature/0.1.0-M3
m

Marcin Aman

07/29/2020, 4:20 PM
Thanks, i'll take a look
AFAIK issue is probably the same as in the koltin-libui and realted to the native support. Should be fixed soon
🎉 1
m

msink

07/31/2020, 7:25 AM
Tried 1.4.0-rc-21 - produces exactly same result as 1.4.0-rc-14 on kotlin-libui/dokka branch.
s

Sebastian Sellmair [JB]

07/31/2020, 8:07 AM
Oh sorry if this came off wrong: We are currently working on resolving types. There are no such commits included in any build right now!
@msink Would you be open to explain how this staging folder works inside your project? 🤔
Note: We probably should render the typealias for the generics, but I think this is currently in progress 👍
m

msink

07/31/2020, 3:12 PM
how this staging folder works inside your project? 🤔
Well, it was used to mimic support of K/N when Dokka totally lacked that support, two years ago. By brute force and black magic 🙂. See dokka.gradle. Now it will be removed, of course.
s

Sebastian Sellmair [JB]

07/31/2020, 3:21 PM
Are you open for a small call with me on google meet? ☺️
View count: 7