[Gradle](https://gradle.org/) and [K9s](https://kubernetes.io/) do this via drop down menu in the site header? Gradle uses a [separate site for documentation](https://docs.gradle.org/), having each version in a sub-directory under the site. K9s switches the whole site, having previous versions under a separate domain name.