diff --git a/images/README.md b/images/README.md new file mode 100644 index 0000000..6c5e71c --- /dev/null +++ b/images/README.md @@ -0,0 +1,34 @@ +# Statistical Python logo + +## How to generate favicon.ico + +1. Convert SVG to png: + +``` +inkscape --export-type=png statistical-python-logo.svg +``` + +2. Convert png to multi-resolution icon: + +``` +convert statistical-python-logo.png -define icon:auto-resize=64,48,32,16 -colors 4 favicon.ico +``` + +## To simplify SVGs for making icons + +See the [SimpleIcons guidelines](https://github.com/simple-icons/simple-icons/blob/develop/CONTRIBUTING.md#adding-or-updating-an-icon): + +1. Isolate the icon from any text or extraneous items. +2. Merge any overlapping paths. +3. Compound all paths into one. +4. Change the icon's viewbox/canvas/page size to 24x24. +5. Scale the icon to fit the viewbox, while preserving the icon's original proportions. This means the icon should be touching at least two sides of the viewbox. +6. Center the icon horizontally and vertically. +7. Remove all colors. The icon should be monochromatic. +8. Export the icon as an SVG. + +They use [SVGO](https://github.com/svg/svgo) to optimize SVGs. You can also use scour: `pip install scour`. + +``` +scour --set-precision=2 --strip-xml-prolog --remove-metadata --enable-comment-stripping --enable-viewboxing --indent=none --no-line-breaks --strip-xml-space --shorten-ids --enable-id-stripping statistical-python-logo.svg statistical-python-icon.svg +``` diff --git a/images/favicon.ico b/images/favicon.ico new file mode 100644 index 0000000..77574a2 Binary files /dev/null and b/images/favicon.ico differ diff --git a/images/statistical-python-logo.svg b/images/statistical-python-logo.svg new file mode 100644 index 0000000..600bc48 --- /dev/null +++ b/images/statistical-python-logo.svg @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/myst.yml b/myst.yml index c63746b..9b54ce6 100644 --- a/myst.yml +++ b/myst.yml @@ -14,6 +14,6 @@ site: # - title: Packages # url: /packages options: + favicon: images/favicon.ico + logo: images/statistical-python-logo.svg logo_text: Statistical Python - # favicon: favicon.ico - # logo: statistical-python_logo.png