Improve heuristics for displaying README files
The current heuristics for picking the README file to render when visiting a repository is not optimal.
See for example:
-
https://archive.softwareheritage.org/browse/origin/git/url/https://github.com/alandipert/ncsa-mosaic/directory/ We have README.resources.html rendered instead of README.md
-
https://archive.softwareheritage.org/browse/origin/git/url/https://github.com/chrislgarry/Apollo-11/directory/ We have README.zh_tw.md rendered instead of README.md
it would be better to have this fixed before opening up the archive.
Migrated from T1056 (view on Phabricator)