Retrieve the most suitable revision for source links in the docs