Documentation page version switch

FYI I think it can be done. I have found this example (Camunda docs)

But it is not clear how the site is doing it. Any ideas?