When using the <versioning plugin>, what should I ...
# dokka
m
When using the versioning plugin, what should I use for "older versions"? I can't really take the output of all the previous runs because they already includes each the k-1 older versions in
dokka/html/older
meaning the amount of data needed to build n versions grows like n*(n-1)/2 (I think, maths are hard!) Would it make sense to only provide version n-1?
r
I ran into this in the past and had a "older versions" folder, and removed
dokka/html/older
when copying past versions into that folder
Was supposedly fixed at one point: https://github.com/Kotlin/dokka/issues/1940
👀 1
thank you color 1
o
Hey! Have you tried following instructions here https://github.com/Kotlin/dokka/blob/master/dokka-subprojects/plugin-versioning/README.md ? Also, you can take a look on
ktor
setup here: https://github.com/ktorio/ktor/blob/f13ca47f4100fb457b1bed70f3d197c4b39d6149/build.gradle.kts#L167-L176 and the resulting HTML content here: https://github.com/ktorio/api.ktor.io/tree/main/versions Also, as far I see from our tests for versioning plugin, there is no nested
older
directories when building documentation (attached screenshot), so everything should be fine ^_^ Note: I haven't yet tried to use
versioning
plugin for some real project, but I will be glad to help with any issues you will find during your path 🙂
💙 1
m
Have you tried following instructions here
Ha, thanks! I actually read that page except the last paragraph 🤦‍♂️ . This is how I ended up doing it
👍 1