Support svg logos too

This commit is contained in:
Joe Ferguson 2015-08-13 15:30:34 -07:00
parent fd6ae7a5b7
commit f5ad3ff4ab
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=