Fix Docker images, sprites:generate and a favicon cors issue

pull/1036/head
Jasper van Merle 6 years ago
parent db079c13cd
commit 5dbb853606

@ -6,7 +6,7 @@ ENV ENABLE_SERVICE_WORKER=true
WORKDIR /devdocs
RUN apt-get update && \
apt-get -y install git nodejs && \
apt-get -y install git nodejs libcurl4 && \
gem install bundler && \
rm -rf /var/lib/apt/lists/*

@ -7,7 +7,7 @@ WORKDIR /devdocs
COPY . /devdocs
RUN apk --update add nodejs build-base libstdc++ gzip git zlib-dev && \
RUN apk --update add nodejs build-base libstdc++ gzip git zlib-dev libcurl && \
gem install bundler && \
bundle install --system --without test && \
thor docs:download --all && \

@ -9,6 +9,7 @@ withImage = (url, action) ->
action(imageCache[url])
else
img = new Image()
img.crossOrigin = 'anonymous'
img.src = url
img.onload = () =>
imageCache[url] = img

@ -31,6 +31,8 @@ class SpritesCLI < Thor
item[:dark_icon_fix] = needs_dark_icon_fix(item[:icon_32], bg_color)
end
return unless items_with_icons.length > 0
log_details(items_with_icons, icons_per_row)
generate_spritesheet(16, items_with_icons, 'assets/images/sprites/docs.png') {|item| item[:icon_16]}

Loading…
Cancel
Save