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

    Sam Gammon

    11/12/2022, 2:11 AM
    i am trying to use
    include
    via
    dokkaSourceSets
    , but i can't quite get it to work. code:
    tasks.withType<org.jetbrains.dokka.gradle.DokkaTaskPartial>().configureEach {
        dokkaSourceSets {
            configureEach {
                includes.from("module.md")
            }
        }
    }
    i
    • 2
    • 16
  • s

    Sam Gammon

    11/12/2022, 2:12 AM
    when i build, i don't see any contents from
    module.md
    in any of the HTML files
  • s

    Sam Gammon

    11/12/2022, 2:12 AM
    am i doing something that is obviously wrong?
  • c

    Carson Holzheimer

    12/01/2022, 4:54 AM
    Hi I’m having a lot of trouble with Dokka. My main aim is to provide IDE documentation to library consumers for our closed source library. My strategy so far is to create a javadoc jar for only the public api. All of the public api code is java. My publishing.gradle file is in the thread. This works, but the generated javadocs has a lot of missing documentation: @deprecated text is missing, all property docs are missing. Also, documentation for any files that are in different android build type folders are NOT suppressed. It’s unrelated to Dokka, but another strategy I tried to enable IDE documentation was to publish the sources jar, just for the public api classes. This works if minification is turned off, but fails if it is turned on, with no documentation showing at all in Android studio. I don’t know how to debug this. Do I need to ensure that absolutely everything in the classes I have sources for is not minified? Is there any way to see error logs for this?
    i
    • 2
    • 8
  • a

    Anton Yalyshev [JB]

    12/07/2022, 8:00 AM
    Hi everyone 👋 Your feedback has been a tremendous help to the Dokka team, and we are very grateful to all of you! In this channel, we usually talk about specific points and only rarely discuss your overall experience. To get some more general feedback, our team has prepared the first Dokka Survey. With it, we are hoping to get a better sense of the areas in Dokka that require the most attention, as well as the types of projects in which it is being used. Please tell us about your experience here: https://surveys.jetbrains.com/s3/dokka-survey This survey should take around 7 minutes to complete. By participating, you will get the chance to win a $50 Amazon gift card. Any information you provide will be kept confidential.
    g
    • 2
    • 3
  • m

    Mateus Moreira

    12/07/2022, 10:07 PM
    Hello! I am making a Dokka plugin to render docs as Json and I am getting a bit lost on how to correctly approach this, my idea was to have a package object that has classes/interfaces objects inside, then inside those would go the members, etc. I was able to get decently far into this crazy idea, however I am unsure how to correctly proceed, for example I am trying to get the parameters of a function and its comments, and annotations, etc. If I use the
    documentables
    as DFunction I can get the parameters but they lack the comments and generic types are erased, ex:
    test: Provider<String>
    would turn into just
    Provider
    . Could I get some advice on how to correctly approach this? I feel like I am not doing this the correct way.
    j
    v
    • 3
    • 7
  • g

    George

    12/08/2022, 12:40 PM
    Hi folks, im having trouble to generate docs for project which mixes java and kotlin. It seems it only generates docs for java files only, im using maven. (i will post plugin config in thread). Thanks in advance for any help !
    v
    • 2
    • 8
  • c

    CLOVIS

    12/10/2022, 10:36 AM
    What is the recommended way of including proper non-code documentation pages in the Dokka output? As in, not just the module/package headers, but proper full-blown pages for tutorials, that have the possibility to link to code etc, like all Dokka code can do. I'm half-tempted to create a
    documentation
    module that just contains
    object
    s with documentation 😅
    j
    j
    +2
    • 5
    • 15
  • m

    Mateus Moreira

    12/21/2022, 5:30 PM
    Hey, I am unsure if this is the right place to ask this question, but as I have asked before I am working on a json plugin for Dokka, which is pretty much complete. So my question is how does Kotlin's main repo generate the docs for the stdlib? I want to run my plugin to generate the json for the stdlib if possible, but looking at the main Kotlin repo I can't really figure how it's done. (Only JVM would be needed)
    i
    • 2
    • 5
  • i

    Ignat Beresnev

    01/03/2023, 7:57 PM
    Hi! Your case is quite interesting as I believe Dokka should've added line breaks here Is this API reference public? Can you link to it?
    g
    • 2
    • 5
  • a

    Abe Sol

    01/05/2023, 1:28 PM
    In https://api.openrndr.org/ the version displayed at the top
    0.1.0-dev.1+c35ad28
    is not what I would like. How is that version string decided? is it gradle, dokka, something else? The hash part is correct coming from the latest commit. When I run the
    dokkaHtmlMultimodule
    gradle task locally the version in the produced html files is
    0.4.1
    . This and this files are involved. Dokka version is 1.7.10.
    g
    i
    j
    • 4
    • 13
  • t

    tomekj

    01/10/2023, 1:20 PM
    hey All, do you know if it’s possible to embed a video within the docs generated with Dokka?
    i
    v
    • 3
    • 4
  • a

    Alina Dolgikh [JB]

    01/16/2023, 11:05 AM
    📣 Folks, sincere apologies for the
    here
    notification, but we really need some feedback on the below survey. Our understanding of your experience strongly affects further Dokka development. Thank you. <!here> https://surveys.jetbrains.com/s3/dokka-survey
    r
    a
    • 3
    • 2
  • s

    Shivam

    01/24/2023, 12:40 PM
    For multi-module, Is there a configuration to open a specific child module html by default(instead of the page that shows
    All modules:
    )?
    c
    • 2
    • 8
  • a

    ansman

    01/26/2023, 1:33 AM
    Are you able to exclude some submodules when running
    dokkaHtmlMultiModule
    ? I have a submodule that publishes a javadoc artifact but I don't want to include it in my unified dokka HTML
    j
    i
    • 3
    • 13
  • p

    Piotr Krzemiński

    01/26/2023, 3:14 PM
    I’m looking for a working example of embedding Dokka-generated HTML (seems more mature than Markdown output) within mkdocs. Right now I just use
    mkdocs gh-deploy
    (here) and in a single step it builds and deploys it. What I’m looking for is having an ability to attach a directory with the generated Dokka HTML output and then deploy it, or something equivalent. Any hints greatly appreciated
    • 1
    • 3
  • j

    Jan

    02/01/2023, 5:41 PM
    I have this project structure: module1/src module2/src src If I create the dokka files using
    dokkaHtmlMultiModule
    I only see module1 and module2 in the created documentation. How can I include the source files of the root project?
    • 1
    • 1
  • m

    mkrussel

    02/02/2023, 8:43 PM
    I'm noticing that properties with private or protected setters look like they have public setters in the documentation. This is with 1.7.20.
    b
    i
    i
    • 4
    • 17
  • p

    Piotr Krzemiński

    02/03/2023, 9:19 AM
    I’d like to somehow divide the docs for entities, think: public and internal API like here. More specifically, see these docs: https://krzema12.github.io/github-workflows-kt/api-docs/ - almost all stuff in package starting with
    it.krzeminski.githubactions.actions
    should go somewhere else because they contain generated code. Is it possible with Dokka?
    v
    • 2
    • 2
  • a

    Adam S

    02/04/2023, 6:26 PM
    I’m working on the Dokka Gradle Plugin refactor, and I’ve got safe cross-project configuration working, except it looks like some of the HTML processing isn’t working. In the HTML files I can see
    PathToRootSubstitutionCommand
    comments, but the
    ###
    substitution isn’t triggered
    <!--[+]cmd:{"@class":"org.jetbrains.dokka.base.templating.PathToRootSubstitutionCommand","pattern":"###","default":""}-->    <link href="###images/logo-icon.svg" rel="icon" type="image/svg">
    I also see in the Dokka logs that some of the ‘extension points’ aren’t working
    Unused extension points found: ExtensionPoint: org.jetbrains.dokka.base.DokkaBase/externalClasslikesTranslator, ExtensionPoint: org.jetbrains.dokka.base.DokkaBase/externalDocumentablesProvider, ExtensionPoint: org.jetbrains.dokka.base.DokkaBase/immediateHtmlCommandConsumer
    I’ll put the full JSON config that’s being used to trigger the Dokka Generator in the thread - is it missing something?
    i
    • 2
    • 22
  • a

    adte

    02/09/2023, 12:03 AM
    Hello! I'm wondering, how do people document files or packages? For functions there's the /** doc */ syntax, but what if I want to document what's inclided in a given file or a package? Do people write a README.md file inside the package, or what is the convention? I didn't see any guidance about that in the Kotlin documentation style guide. Thanks!
    i
    • 2
    • 3
  • m

    mkrussel

    02/10/2023, 3:04 PM
    As dokka matures the HTML it generates changes. Will major changes to it break the versioning plugin?
  • m

    mkrussel

    02/10/2023, 7:13 PM
    I hope I'm missing something but the design of the
    older_version_dir
    for the versioning plugin seems to have a scaling problem. I did three versions.
    1.0.0
    was 41.6 MB I made some small changes and created 1.0.1.
    1.0.1
    was 84.4 MB I then made no changes but built a 1.0.2
    1.0.2
    was 127.2 MB So after the first release the
    older_versions_dir
    was 41.6 MB, after the second release it was 126.0 MB, after the third release it was 253.2 MB. This is scaling exponentially. I understand that each version contains a copy of all the other versions, but should we be storing each copy so many times. Do we just need the latest version since it contains all the others, or is there something in each version we can copy out that doesn't have the other versions.
    r
    • 2
    • 6
  • s

    simon.vergauwen

    02/13/2023, 2:36 PM
    Not sure if this is the right channel to ask, but can you manipulate where
    knit
    generates it's files 🤔 Currently I have some snippets
    md
    inside a
    docusaurus
    project,
    rootDir/content/blog/my-doc.md
    and I have a Gradle project with KotlinX Knit setup in
    rootDir
    . My goal is to have a
    rootDir/guide
    submodule with Kotlin setup, and have KotlinX Knit generate the code in there. Currently the only way I found. to do this is to move the generated Knit files into the
    rootDir/guide
    , but that seems like a ugly hack 😞
    a
    • 2
    • 21
  • a

    Adam S

    02/14/2023, 11:05 AM
    in the dokka-multimodule-example, how do childProjectA and childProjectB end up in the output directory? Are they copied there by the Dokka Gradle Plugin, or by DokkaGenerator? I found there is a ‘copyChild’ utility, but this isn’t used anywhere https://github.com/Kotlin/dokka/blob/e8423ecf9f430758398eabc0d35077fff17f1f6c/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleFileLayout.kt#L51-L55C2
    i
    • 2
    • 5
  • j

    jaguililla

    02/14/2023, 7:24 PM
    Is Dokka 1.8 going to be released anytime soon? Will it be supporting Gradle 8?
    i
    • 2
    • 2
  • e

    Emil Kantis

    02/16/2023, 11:53 AM
    I'm a bit unsure how to achieve a multi-module build setup with the following structure:
    /build-logic/src/main/kotlin/dokka-conventions.gradle.kts
    /build.gradle.kts                        (applies dokka-conventions)
    /subproject-A/module-1/builds.gradle.kts (applies dokka-conventions + kotlin-jvm)
    /subproject-A/module-2/builds.gradle.kts (applies dokka-conventions + kotlin-jvm)
    /subproject-B/module-1/builds.gradle.kts (applies dokka-conventions + kotlin-jvm)
    /subproject-B/module-2/builds.gradle.kts (applies dokka-conventions + kotlin-jvm)
    /subproject-C/builds.gradle.kts          (applies dokka-conventions + kotlin-jvm)
    my multi-module index page in
    /build/dokka/index.html
    only contains docs for
    subproject-A
    . Sometimes I manage to get it to output all modules, but it's incredibly flaky - not sure what causes the failure/success.. Perhaps worth mentioning: using Kotlin 1.8.10 and tried with both Gradle 7.6 and 8.0.
    a
    • 2
    • 4
  • s

    Sebastian Schuberth

    02/20/2023, 10:32 AM
    How can I use inline markup to document parameters of a primary constructor? If I use the usual
    [param]
    syntax, IntelliJ show the references as unresolved.
    c
    v
    • 3
    • 14
  • a

    Adam S

    02/24/2023, 6:23 PM
    Hi all 👋 I have been working on re-writing the Dokka Gradle plugin to make it more compatible with the Gradle API. Today I finished compatibility with the Gradle Configuration Cache 🎉 The plugin is called Dokkatoo :dokkatoo:, and it’s published on the Gradle Plugin Portal https://github.com/adamko-dev/dokkatoo It’s very rough around the edges, so please consider it an alpha. I’d really appreciate it if you could give it a go and make a GitHub issue if there are any problems, especially if you’re Gradle-savvy, or if (like me) you’ve been avoiding using Dokka because of the Gradle plugin compatibility. I’ve been working with @Ignat Beresnev on this (a shout out for his help!), and our goal is to merge Dokkatoo into the main Dokka repo.
    i
    j
    • 3
    • 4
  • j

    Javier

    03/04/2023, 11:13 AM
    is the 1.8.10 changelog public somewhere?
    t
    a
    i
    • 4
    • 4
Powered by Linen
Title
j

Javier

03/04/2023, 11:13 AM
is the 1.8.10 changelog public somewhere?
t

Trevor Stone

03/04/2023, 12:48 PM
https://github.com/JetBrains/kotlin/releases/tag/v1.8.10 ?
j

Javier

03/04/2023, 12:49 PM
I am taking about dokka, not Kotlin
a

Adam S

03/04/2023, 1:05 PM
it’s not a changelog, but the commits are visible here: https://github.com/Kotlin/dokka/compare/1.7.20...1.8.10
i

Ignat Beresnev

03/04/2023, 7:01 PM
We'll publish it on Monday :) Both the release notes and a separate message about the update Gotta give Maven Central some time to propagate artifacts to different hosts and the adoption rate is likely to be higher for Monday morning releases than Friday evening ones
View count: 3