Added link to RTD for previous version builds under main version link

Fixes #8414