Oliver.O
12/01/2025, 2:33 PMhfhbd
12/01/2025, 7:48 PMOliver.O
12/01/2025, 9:37 PMdokka {
pluginsConfiguration {
versioning {
version = newApiVersion
versionsOrdering = listOf(newApiVersion) + previousVersions
olderVersionsDir = apiVersionsDirectory
}
}
}hfhbd
12/01/2025, 9:46 PMhfhbd
12/01/2025, 9:46 PMOliver.O
12/01/2025, 9:47 PMOliver.O
12/01/2025, 9:52 PMCLOVIS
12/02/2025, 8:16 AMjavadoc.io deal with versioning.Oliver.O
12/02/2025, 10:37 AMCLOVIS
12/02/2025, 10:39 AMCLOVIS
12/02/2025, 10:41 AMOliver.O
12/02/2025, 10:43 AMCLOVIS
12/02/2025, 10:48 AMCLOVIS
12/02/2025, 10:49 AMOliver.O
12/02/2025, 10:59 AMCLOVIS
12/02/2025, 11:03 AMTest docs locally before releasing, without modifying anything in the release processjavadoc.io just serves the Dokka output and adds the 'version switch' header. Other than that, everything else is the same as local.
Have my docs up and current whenever a new release is published (so no delays)If you go on the website and press the 'refresh' button it takes ~3 minutes to refresh. I'm sure it's not too hard to script that into your release process if you really want to.
Being able to fix docs for past versions if necessaryThat's a hard no. It displays the contents of the MavenCentral, which are immutable (for good reasons).
Oliver.O
12/02/2025, 11:07 AMjavadoc.io just serves the Dokka output and adds the 'version switch' header. Other than that, everything else is the same as local.Who would handle cross-artifact navigation?
Oleg Yukhnevich
12/02/2025, 12:38 PMWith Dokka, it seems like I can only go backwards, because all "older" versions are hardwired at creation time, and newer versions won't be seen as they arrive. Is my understanding correct?Yes, with Dokka's
versioning plugin, that's correct. For each new version, you need to regenerate the documentation, using the previous output. It's known that it's not ideal.
I do know that Apollo has some setup to publish and download multi-module HTML for every version, but as you check it out in the git, you can reuse it, of course.
Regarding javadoc.io, the main problem is that it hosts artifacts per module, so you need to manually set up external documentation links between them via the same mechanism as links to the standard library and other libraries are configured. Dokka does this for a multi-module case automatically (via a bit different mechanism)