https://kotlinlang.org logo
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
  • r

    raulraja

    12/13/2018, 2:54 AM
    any help is appreciated, thanks!
    s
    • 2
    • 3
  • r

    raulraja

    12/13/2018, 2:57 AM
    Also I'm looking for a way as to how to tell dokka in a multimodule gradle project to automatically resolve links for other dokka generated files of all other modules in the same project. This is for the Arrow library. Our current dokka config looks like this: https://github.com/arrow-kt/arrow/blob/rr-meta-kdoc/build.gradle#L90-L112
    s
    • 2
    • 6
  • e

    egorand

    12/25/2018, 6:42 PM
    what’s the status of Dokka’s support for multiplatform projects?
    r
    s
    s
    • 4
    • 4
  • b

    bjonnh

    12/27/2018, 11:31 PM
    but if I wish to include samples, and things like that, I can't find any documentation on that (and dokka itself doesn't seem to have documentation on its own code…)
    e
    m
    • 3
    • 14
  • d

    Dalinar

    01/04/2019, 6:44 PM
    if I refer in the doc comment to a
    private const val
    in the same class , e.g
    [PI]
    then is this ok? or does it need to be more visible than
    private
    ?
    s
    • 2
    • 1
  • s

    suresh

    01/23/2019, 5:11 AM
    Last commit to the dokka repo was almost an year back. Is this still the tool going to be used for doc generation in kotlin? Would be great if the authors can merge this PR - https://github.com/Kotlin/dokka/pull/358
    s
    e
    • 3
    • 4
  • r

    raulraja

    01/27/2019, 1:43 AM
    I'm getting random errors comming from dokka that look like this:
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':arrow-dagger-effects-rx2:dokka'.
    > Guice provision errors:
      
      1) Error injecting constructor, java.lang.RuntimeException: Exception while loading package-list from ExternalDocumentationLinkImpl(url=<http://docs.oracle.com/javase/6/docs/api/>, packageListUrl=<http://docs.oracle.com/javase/6/docs/api/package-list>)
        at org.jetbrains.dokka.ExternalDocumentationLinkResolver.<init>(ExternalDocumentationLinkResolver.kt:28)
        at org.jetbrains.dokka.ExternalDocumentationLinkResolver.class(ExternalDocumentationLinkResolver.kt:28)
        while locating org.jetbrains.dokka.ExternalDocumentationLinkResolver
          for parameter 4 at org.jetbrains.dokka.DeclarationLinkResolver.<init>(DeclarationLinkResolver.kt:13)
        while locating org.jetbrains.dokka.DeclarationLinkResolver
          for parameter 0 at org.jetbrains.dokka.PackageDocs.<init>(PackageDocs.kt:13)
        at org.jetbrains.dokka.PackageDocs.class(PackageDocs.kt:12)
        while locating org.jetbrains.dokka.PackageDocs
      
      1 error
    It happens randomly and it's hard to reproduce. Maybe it blows up when the remote Oracle site is down?
    r
    • 2
    • 1
  • j

    Joe

    01/30/2019, 3:05 PM
    Is there a good way to make the dokka maven log output quieter? especially the Classpath line and [ERROR] logging: loading modules: ?
    s
    • 2
    • 1
  • s

    serebit

    02/02/2019, 3:04 PM
    ngl, every time I see a new message notification in here I silently pray that it’s a multiplatform-supporting release
    ☝️ 1
    👍 3
    p
    s
    • 3
    • 5
  • r

    raulraja

    03/05/2019, 9:05 PM
    The docs state:
    // Allows linking to documentation of the project's dependencies (generated with Javadoc or Dokka)
        // Repeat for multiple links
        externalDocumentationLink {
            // Root URL of the generated documentation to link with. The trailing slash is required!
            url = new URL("<https://example.com/docs/>")
            
            // If package-list file located in non-standard location
            // packageListUrl = new URL("file:///home/user/localdocs/package-list") 
        }
    And
    package-list
    is briefly mentioned. Isn't each module responsible for generating a
    package-list
    or how does a user instruct dokka to generate one for a given module that others can consume locally or remotely? Are there other docs for Dokka beside https://github.com/Kotlin/dokka#dokka----- https://kotlinlang.org/docs/reference/kotlin-doc.html ? We rely on dokka to generate the Arrow documentation and currently there is a bunch of places where it's unable to link referenced types from other modules. For example https://arrow-kt.io/docs/apidocs/arrow-mtl/arrow.mtl.extensions.option.functor-filter/arrow.-kind/index.html contains no link to
    Option
    because it's in a different module: https://arrow-kt.io/docs/apidocs/arrow-core-data/arrow.core/-option/index.html
    s
    • 2
    • 3
  • m

    Mike

    03/09/2019, 9:17 PM
    For those interested in an example of how to use @sample, I’ve published a repo that is similar to how the Kotlin language library does it. I haven’t determined how they convert the ‘test’ code into code with comments. I assume some form of post-processing, but at least this demonstrates how the @sample can be used to reference real code, and ensure the code compiles. Let me know if you have questions, or know of a better way to do it. https://gitlab.com/mikezx6r/dokka-demo
    r
    • 2
    • 1
  • m

    Mike

    03/15/2019, 2:06 PM
    Anyone else find Dokka amazing, and yet frustrating? The lack of documentation and good examples is the big thing. Anyway, perhaps someone else has figured this out. Using the approach as per above in a project. Then I realized that for the most part, my samples ARE unit tests, so why not use my unit tests directly? Less repetition and less to maintain. BUT as soon as I add my test folder to the
    samples
    configuration, Dokka ALSO insists my tests be documented. It doesn’t do this if the samples are in a different project (using Gradle for build). Anyone else experienced this and figured out a way to work around it?
    s
    • 2
    • 10
  • t

    tapchicoma

    03/19/2019, 8:22 PM
    https://github.com/Kotlin/dokka/releases/tag/0.9.18 some movement in dokka repo 🙂
    s
    • 2
    • 8
  • r

    robstoll

    03/24/2019, 3:13 PM
    my anti-virus just warned me that dokka-fatjar-0.9.17.jar might be virulent, anybody else got this message?
    s
    • 2
    • 7
  • s

    Shan

    03/26/2019, 9:34 AM
    Hey all. Just wondering, is it possible to use Dokka with only the JVM part of a multiplatform project (for now)? I can't quite get it to function property in my buildscript.
    r
    • 2
    • 8
  • s

    Shan

    03/26/2019, 11:34 AM
    Here is my buildscript @robstoll. I'll take a look at that utility plugin perhaps as I'm not getting anywhere at the moment.
    -.kt
    l
    • 2
    • 2
  • c

    Casey Brooks

    03/28/2019, 3:08 PM
    I’ve got a project that depends on
    dokka-fatjar
    to make a custom output formatter, and I’m having trouble updating to 0.9.18. Intellij doesn’t seem to detect those classes, even though it shows them as available as an External Library. Using Gradle on the command line seems to work fine. Any idea why Intellij can’t find those classes?
    k
    • 2
    • 3
  • e

    egorand

    03/28/2019, 3:36 PM
    has Dokka 0.9.18 been published to the Gradle plugins repo? I’m applying it via the
    plugins
    block and bumping from 0.9.17 doesn’t seem to work - the artifact can’t be resolved
    k
    s
    +2
    • 5
    • 11
  • s

    Shan

    03/30/2019, 8:04 AM
    Does anyone happen to know why trying to run the Dokka task on my CI would be crashing the gradle daemon, but not on my local machine? Using Gradle 5.3.1, I'm testing 5.2.1 right now to see if it's an issue with that. Wasn't happening on Gradle 4.10.2.
    k
    • 2
    • 2
  • s

    Shan

    03/30/2019, 5:25 PM
    After some testing around, turns out my Gradle daemon was actually timing out from a
    java.lang.OutOfMemoryError
    caused by Gradle 5.0 switching the default heap size to 512mb from 1g. It was just running out of memory on the Dokka task repeatedly and failing to crash the daemon until my server's timeout was hit.
    👍 5
    m
    • 2
    • 1
  • n

    Nikky

    04/01/2019, 2:36 PM
    can i have urls in kdoc and click them in idea ? the usecase is loads of generated values twhere i would like to jump to the corresponding webpage
    t
    • 2
    • 1
  • s

    serebit

    04/03/2019, 8:55 PM
    Surprised it wasn’t mentioned in the patch notes for 0.9.18, but Dokka can now be configured entirely in Kotlin build script!
    🎉 2
    m
    s
    • 3
    • 6
  • s

    serebit

    04/05/2019, 10:41 PM
    Dokka doesn't seem to bubble down to subprojects if the plugin is applied to the root. Is this intentional?
    s
    • 2
    • 5
  • r

    robstoll

    04/26/2019, 11:20 AM
    I have the problem that dokka does not find kotlin's
    Pair
    instead it prints
    <ERROR CLASS>
    . the link to other kotin classes like
    List
    work. Does that sound familiar to anyone?
    :yes: 1
    k
    • 2
    • 2
  • s

    Steven

    05/10/2019, 1:59 PM
    I got it working using this: https://discuss.kotlinlang.org/t/how-to-configure-dokka-for-kotlin-multiplatform/9834/2
    k
    • 2
    • 1
  • r

    robstoll

    06/05/2019, 6:31 PM
    is it possible to refer to a specific overload by now?
    k
    • 2
    • 1
  • s

    simon.vergauwen

    06/12/2019, 9:54 PM
    Hi everyone 👋 I’ve been running into the following error a number of times when running dokka for Arrow. It’s reproducible on the master branch, it’s not consistent but easy to reproduce with
    ./gradlew dokka
    . When it doesn’t crash the documentation seems to be generated correctly.
    a
    • 2
    • 4
  • t

    turansky

    07/15/2019, 12:13 PM
    Is it expected, that link doesn't work in
    @see
    block?
    Untitled.kt
    👍 1
    a
    • 2
    • 2
  • z

    Zach Klippenstein (he/him) [MOD]

    07/19/2019, 10:51 PM
    Dokka has a lot of papercuts. There are a ton of open issues on github for fairly major features (linking across modules, distinguishing between function overloads, image embedding), but very little activity on the project, especially compared to something like coroutines. Is JetBrains actually using this tool for their own documentation? Is there any roadmap to a 1.0 release?
    👍 2
    👀 14
    s
    k
    c
    • 4
    • 6
  • a

    andries.fc

    07/23/2019, 7:49 PM
    Is there one from Jetbrains team which cares for the developer experience when using dokka?
    😁 1
    s
    • 2
    • 2
Powered by Linen
Title
a

andries.fc

07/23/2019, 7:49 PM
Is there one from Jetbrains team which cares for the developer experience when using dokka?
😁 1
s

semoro

07/24/2019, 12:00 PM
That’s me, but I’m not working full time on Dokka
@Kamil Doległo and @Paweł Marks also works on Dokka, so you could ping them on questions
View count: 6