Skip to content

Commit bd9185d

Browse files
Merge pull request #3 from jarrodmillman/logo
Add logo
2 parents 4a70269 + f7171f1 commit bd9185d

File tree

4 files changed

+222
-2
lines changed

4 files changed

+222
-2
lines changed

images/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Statistical Python logo
2+
3+
## How to generate favicon.ico
4+
5+
1. Convert SVG to png:
6+
7+
```
8+
inkscape --export-type=png statistical-python-logo.svg
9+
```
10+
11+
2. Convert png to multi-resolution icon:
12+
13+
```
14+
convert statistical-python-logo.png -define icon:auto-resize=64,48,32,16 -colors 4 favicon.ico
15+
```
16+
17+
## To simplify SVGs for making icons
18+
19+
See the [SimpleIcons guidelines](https://github.com/simple-icons/simple-icons/blob/develop/CONTRIBUTING.md#adding-or-updating-an-icon):
20+
21+
1. Isolate the icon from any text or extraneous items.
22+
2. Merge any overlapping paths.
23+
3. Compound all paths into one.
24+
4. Change the icon's viewbox/canvas/page size to 24x24.
25+
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.
26+
6. Center the icon horizontally and vertically.
27+
7. Remove all colors. The icon should be monochromatic.
28+
8. Export the icon as an SVG.
29+
30+
They use [SVGO](https://github.com/svg/svgo) to optimize SVGs. You can also use scour: `pip install scour`.
31+
32+
```
33+
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
34+
```

images/favicon.ico

31.3 KB
Binary file not shown.

images/statistical-python-logo.svg

Lines changed: 186 additions & 0 deletions
Loading

myst.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ site:
1414
# - title: Packages
1515
# url: /packages
1616
options:
17+
favicon: images/favicon.ico
18+
logo: images/statistical-python-logo.svg
1719
logo_text: Statistical Python
18-
# favicon: favicon.ico
19-
# logo: statistical-python_logo.png

0 commit comments

Comments
 (0)