Prioritize the latest version of the doc for search engines.

Make search engines only see the latest version of the documentation.

This code is picked from the [FAQ of readthedocs.org](https://read-the-docs.readthedocs.org/en/latest/faq.html#can-i-make-search-engines-only-see-one-version-of-my-docs).