This PR is a proposal to use the .Site.Params.docs_version to display the latest version in the versions selector to avoid having 5.0.x instead of 5.1.x:
.Site.Params.docs_version
5.0.x
5.1.x