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
  • c

    Czar

    09/22/2020, 4:19 PM
    Hi, I've just tried to generate docs with the new shiny dokka 1.4 and it even started doing stuff, but after 10 minutes or so it just died with the following:
    Execution failed for task ':dokkaHtmlMultiModule'.
    > Could not resolve all files for configuration ':dokkaHtmlMultiModulePlugin'.
       > Cannot resolve external dependency org.jetbrains.dokka:dokka-base:1.4.10 because no repositories are defined.
         Required by:
             project :
    I'm a bit at a loss, it was obviously running and generating module docs, but then it says it can't find itself? o_O
    s
    • 2
    • 3
  • d

    Dmitry Mishin

    09/24/2020, 9:40 AM
    Greetings. I am new to android kotlin development. How can I create my plugin for dokka v1.4.0-rc and how can I debug it during development? Can I just create a DokkaPlugin heir in a new project and debug it while expanding it? Or do I have to do everything in the copied dokka sources? Is there a git repository with an example or more detailed tutorials for less experienced professionals? Thanks.
    m
    m
    • 3
    • 3
  • a

    altavir

    09/26/2020, 7:42 AM
    Does anybody has a sample of gradle configuration to deploy dokka-generated docs as github pages?
    j
    e
    c
    • 4
    • 13
  • r

    Rob Zienert

    10/02/2020, 8:22 PM
    New dokka is a great improvement! Is there a way when generating
    dokkaHtml
    to customize the branding, or do we just need to have a separate gradle task to overlay with custom branding?
    m
    • 2
    • 1
  • r

    Rob Zienert

    10/05/2020, 8:51 PM
    Another question… working on a plugin. I’d like to generate a new table of contents page that enumerates and links to classes that implement a particular type. I’m sleuthing through the code right now and struggling to come up with the right things to implement to do something like this. Any pointers?
    m
    • 2
    • 7
  • b

    Big Chungus

    10/08/2020, 3:46 PM
    Hey all. Don't you think it'd make sense to add platfrom-specific bubbles on common code declarations to better indicate for which platforms those are available?
    m
    m
    • 3
    • 13
  • f

    firezenk

    10/16/2020, 8:05 AM
    Hi all, one question: in multi-module Android projects (one app that uses several android libraries) how can I configure Dokka to make the documentation for all in one command?
    m
    • 2
    • 1
  • k

    Kris Wong

    10/22/2020, 2:16 PM
    is it just me, or is there no way to navigate back to the top in multi-module documentiation?
    m
    • 2
    • 1
  • k

    Kris Wong

    10/26/2020, 1:23 PM
    does anyone know why the API docs for this class would not include any of the methods starting with
    handle
    ...
    • 1
    • 2
  • j

    jgeirega

    10/28/2020, 8:03 PM
    Hi. I'm trying to port atrium ( https://github.com/robstoll/atrium ) to dokka 1.4.10.2. But I seem to be hitting some kind of size limit: when I limit the amount of source sets to 27, I get my build done in < 1 minute, typically. But adding 1 more project can make the gradle task not return in any 'normal' time (I've waited 10 minutes and more in some cases). I also get
    GC overhead limit exceeded
    sometimes. Code can be found here: https://github.com/jgrgt/atrium/blob/dokka-upgrade/gradle/scripts/gh-pages.gradle#L36 (on that line increasing the 27 to 28 makes the time go from <1 minute to not returning after 2 minutes (I gave up after that).
    g
    • 2
    • 2
  • a

    Animesh Sahu

    11/03/2020, 3:11 AM
    Cross post from #language-proposals
    m
    • 2
    • 1
  • r

    Rita Curado

    11/03/2020, 6:23 PM
    Hi there! I am still using kotlin 1.3.x and I am trying to integrate dokka 0.10.1 on my kotlin multiplatform project. Can someone show me an example of the build.gradle.kts with the dokka task for multiplatform? It’s being difficult to find examples 😞 Thanks in advance!
    b
    a
    • 3
    • 12
  • s

    SirNapkin1334

    11/05/2020, 11:38 PM
    can anyone who works on Dokka confirm that KDoc does not have a line length limit, unlik JavaDoc?
    m
    • 2
    • 1
  • b

    Bryan Herbst

    11/06/2020, 6:15 PM
    My
    includes
    doesn’t seem to be getting picked up- what’s the best way to troubleshoot that? I don’t see anything in the logs that appears to be helpful, even when running with
    --debug
    . I’m running
    ./gradlew dokkaGfm
    Here’s my configuration:
    dokkaGfm {
      def outputPath =  //..
      outputDirectory = file(outputPath)
    
      dokkaSourceSets {
        named("main") {
          jdkVersion = 8
          includes.from("README.md", "packages.md")
        }
      }
    }
    Neither README.md nor packages.md appear to be getting picked up. If it makes a difference, this is an Android library module.
    m
    k
    • 3
    • 9
  • a

    addamsson

    11/07/2020, 8:44 PM
    Hi there! I've added Dokka to my multiplatform + multimodule project and it works like a charm! The only problem I bumped into is that Dokka generates a file called
    -modules.html
    into the root directory of the resulting documentation instead of generating an
    index.html
    file. How can I tell Dokka to create an
    index.html
    instead? If I rename the file by hand it works, but I'd like to automate this.
    👍 1
    b
    m
    g
    • 4
    • 36
  • w

    Will Buck

    11/12/2020, 7:31 PM
    Hello fellow kotlineers! I am looking for some help w/ some Dokka related troubles, is anyone here knowledgeable and able to provide some guidance? it seems to be related to this issue: https://github.com/Kotlin/dokka/issues/537
    m
    d
    • 3
    • 2
  • r

    rbares

    11/13/2020, 12:48 PM
    Hi all, I'm trying to get dokka to include documentation for files generated from AIDL, which output to the build folder. How do you include additional sources in an Android project for dokka 1.4.10.2? The README suggests I should be putting config in
    dokkaSourceSets { named("main") { ... } }
    . I've managed to get
    includeNotPublic.set
    working in that block, but
    sourceRoots.from
    and
    sourceRoots.setFrom
    don't do anything.
    m
    k
    • 3
    • 9
  • a

    Alex Ch

    11/16/2020, 1:51 PM
    Hi all, have you tried to generate Javadoc for the sealed class? The gradle log said:
    For Environment: expected 1 page, but got 2
    And rendered Javadoc with 2 rows for the
    Environment
    sealed class. Here's class:
    public sealed class Environment(internal val url: String) {
        public object QA : Environment("<https://QA>")
        public object PROD : Environment("<https://PROD>")
    }
    As I understand, there's
    FallbackPageMergerStrategy
    that spits out the line above, but I believe it is just a side-effect of having 2 of the same
    PageNode
    . Is this a real bug, or "undocumented behaviour"? Thanks
    k
    • 2
    • 2
  • j

    Julia Solonar

    11/18/2020, 10:55 AM
    Hi, I am writing custom DokkaPlugin. And was wondering, is there way to get default value of field from
    DProperty
    ? For example:
    class Color{
     var r:Int = 250
    }
    How to get that
    250
    value?
    m
    • 2
    • 13
  • c

    cb

    11/18/2020, 6:06 PM
    Anyone using
    externalDocumentationLink
    and has it working? I can't get anything external to link
    a
    k
    • 3
    • 12
  • j

    Julia Solonar

    11/20/2020, 1:43 PM
    HI, I have multiplatform modules. My new dokkaPlugin is generating documentation for it. But I want to have generated documentation only for one platform (for example android). Could you please recommend me which of extension points will be the best one to filter data by source?
    i
    m
    • 3
    • 5
  • s

    Sorin

    11/24/2020, 3:12 PM
    Hi all. I am still struggling configuring the multimodule dokka on android. I am calling as in the documentation :
    tasks.dokkaHtmlMultiModule.configure {
        outputDirectory.set(buildDir.resolve("dokkaCustomMultiModuleOutput"))
        documentationFileName.set("README.md")
    }
    m
    • 2
    • 6
  • s

    Sorin

    11/24/2020, 3:13 PM
    It does find the
    task.dokkaHtml
    one. Any ideas how I can solve this? Thx.
    k
    • 2
    • 2
  • r

    rsetkus

    11/25/2020, 4:05 PM
    Hi. Working on Kotlin Multiplatform project and following this example. Running any dokka task getting error:
    Cannot change dependencies of dependency configuration ':iosArm64MainImplementationDependenciesMetadata' after task dependencies have been resolved
    Anybody else experienced anything similar?
    k
    • 2
    • 6
  • c

    cb

    11/25/2020, 10:48 PM
    Is there a way to make multi module add type links between modules? At the moment it seems that only external types are linked.
    k
    • 2
    • 2
  • s

    sunnat629

    12/01/2020, 6:33 AM
    Hey, I am developing JavaDoc for our Android project using Dokka.
    dependencies {
        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…
    m
    • 2
    • 11
  • a

    addamsson

    12/03/2020, 9:48 PM
    Hi all! The Dokka docs say that: If you want to generate the documentation as seen from Java perspective, you can add the 
    kotlin-as-java
     plugin to the Dokka plugins classpath, eg. in Gradle:
    dependencies{
        implementation("...")
        dokkaGfmPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:${dokka-version}")
    }
    Where do I put this in a multi-module multiplatform project? I'm also using
    .kts
    , and this doesn't compile anywhere. If any of you know anybody who can help I'm willing to pay for the proper config, I just want to get this over with as I've been struggling with Dokka for months now.
    m
    k
    • 3
    • 5
  • r

    Rita Curado

    12/07/2020, 11:51 PM
    Hi all! Is it possible to use a Jekyll Theme (like https://jekyllthemes.io/theme/just-the-docs) inside Dokka when running
    dokkajekyll
    ? Thanks in advance
    e
    a
    • 3
    • 4
  • h

    Harald Pehl

    12/08/2020, 7:54 AM
    Hi all! I have issues with code samples in my library documentation. I'd like to use 
    @sample
     to reference sample code. Here's my setup: • build.gradle.kts • library code • sample code When running
    ./gradlew dokkaHtml
    I get
    ...
    Cannot find descriptor for package ChipSamples
    Cannot find PsiElement corresponding to ChipSamples.chip
    ...
    The code samples are not picked up by dokka. Neither are they visible in the documentation popups in IntelliJ projects which use my library. Some questions I have related to dokka configuration: • Do I have to specify a list of files or can I specify a directory in
    samples.from(listOf())
    ? • Is the file or path in
    samples.from(listOf())
    absolute or relative (and if so relative to what directory)? • What am I doing wrong? Any help, hints or comments are highly appreciated!
    m
    • 2
    • 3
  • h

    Harald Pehl

    12/08/2020, 3:22 PM
    Hi all, is there a way to customize how the code sample are rendered? I'd like to omit the run button and change the target platform.
    m
    • 2
    • 2
Powered by Linen
Title
h

Harald Pehl

12/08/2020, 3:22 PM
Hi all, is there a way to customize how the code sample are rendered? I'd like to omit the run button and change the target platform.
m

Marcin Aman

12/09/2020, 9:05 AM
We are using kotlin-playground for this functionality and i don't see an option to omit the run button: https://github.com/JetBrains/kotlin-playground As for the change of platform: they support JS and JVM. As for now there is no way to set it in the dokka, we are always going for the JVM platform. If you have some spare time i encourage you to contribute 🙂 I think the change should be made somewhere here: https://github.com/Kotlin/dokka/blob/084ae72f5dfec6a4ff6f370807fe5312cf23cf93/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt#L675
h

Harald Pehl

12/09/2020, 11:44 AM
Thanks for the feedback @Marcin Aman So less time and so much interesting stuff to do 😉 Well lets see, maybe I can find some time for a PR.
View count: 4