dokka
dokka copied to clipboard
How to version current docs in the v2 plugin
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.
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")
}