Merge pull request #314 from infosiftr/support-svg

Support svg logos too
This commit is contained in:
Tianon Gravi 2015-08-13 15:43:37 -07:00
commit c0b65498d6
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,9 @@ for repo in "${repos[@]}"; do
logo=
if [ -e "$repo/logo.png" ]; then
logo="![logo](https://raw.githubusercontent.com/docker-library/docs/master/$repo/logo.png)"
elif [ -e "$repo/logo.svg" ]; then
# rawgit.com because: http://stackoverflow.com/a/16462143/433558
logo="![logo](https://rawgit.com/docker-library/docs/master/$repo/logo.svg)"
fi
compose=