dokka icon indicating copy to clipboard operation
dokka copied to clipboard

How to version current docs in the v2 plugin

Open ansman opened this issue 7 months ago • 1 comments

Question When using the v2 plugin, how does one actually version the current docs? The example shows how to configure the directory where the previous docs live, but now how you generate docs into that directory.

ansman avatar Apr 26 '25 18:04 ansman

I'm using this for now, but I'm not sure if I need to store additional files or skip other files:

tasks.register<Copy>("versionCurrentDocs") {
    enabled = !isSnapshotVersion
    from(tasks.dokkaGeneratePublicationHtml)
    into(olderVersionsFolder.resolve(version))
    exclude("older")
}

ansman avatar Apr 26 '25 19:04 ansman