Skip to content

Commit

Permalink
Merge pull request #336 from autocrypt/favicon
Browse files Browse the repository at this point in the history
Generate the favicon.ico from the logo
  • Loading branch information
hpk42 committed Jan 11, 2018
2 parents 2d54056 + b5cc53b commit dc7a355
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ help:
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
@echo " coverage to run coverage check of the documentation (if enabled)"
@echo " dummy to check syntax errors of document sources"
@echo " favicon to generate a multi-resolution favicon.ico from autocrypt_logo_alone_orig.png"

#
# Pattern rule for converting SVG to PDF
Expand Down Expand Up @@ -238,3 +239,13 @@ dummy:
$(SPHINXBUILD) -b dummy $(ALLSPHINXOPTS) $(BUILDDIR)/dummy
@echo
@echo "Build finished. Dummy builder generates no files."

.PHONY: favicon
favicon: html
convert images/autocrypt_logo_alone_orig.png -resize 256x256 -transparent white /tmp/favicon-256.png
convert /tmp/favicon-256.png -resize 16x16 /tmp/favicon-16.png
convert /tmp/favicon-256.png -resize 32x32 /tmp/favicon-32.png
convert /tmp/favicon-256.png -resize 64x64 /tmp/favicon-64.png
convert /tmp/favicon-256.png -resize 128x128 /tmp/favicon-128.png
convert /tmp/favicon-16.png /tmp/favicon-32.png /tmp/favicon-64.png /tmp/favicon-128.png /tmp/favicon-256.png -colors 256 $(BUILDDIR)/html/favicon.ico
rm -f /tmp/favicon-16.png /tmp/favicon-32.png /tmp/favicon-64.png /tmp/favicon-128.png /tmp/favicon-256.png

0 comments on commit dc7a355

Please sign in to comment.