Versioned docs are generated using Sphinx versioning add on:
https://robpol86.github.io/sphinxcontrib-versioning/tutorial.html
To make versioned doc site run:
sphinx-versioning build --show-banner --banner-main-ref 2.0 . ./_build/html
Changing '2.0' to the release that should be the main doc release.