For each new version of the library, publish its KDoc files (i.e. content of the javadoc.jar) to the website (Git branch on GitHub) automatically (using a CI in GitHub Actions).
NOTE
Dokka supports Versioning plugin as stated in its website which aims to "provide users with ability to create a versioned documentation. Therefore, users of the documentation can view different versions of the documentation by going to the main page and change versions."
For each new version of the library, publish its KDoc files (i.e. content of the javadoc.jar) to the website (Git branch on GitHub) automatically (using a CI in GitHub Actions).
NOTE
Dokka supports Versioning plugin as stated in its website which aims to "provide users with ability to create a versioned documentation. Therefore, users of the documentation can view different versions of the documentation by going to the main page and change versions."