Skip to content

Commit b669063

Browse files
authored
Merge pull request #81 from hugovk/favicon-step2
Add favicon, step 2
2 parents 9bfce1a + cc03c85 commit b669063

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
results.json
2+
wheel.png
23
wheel.svg
34
*.pyc

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8">
55
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet">
66
<link rel="icon" href="favicon.ico">
7+
<link rel="icon" href="wheel.png">
78
<style>
89
body{margin-top:15px;}
910
a.btn, h1{text-align: center;}

svg_wheel.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import math
2+
import os
23
import xml.etree.ElementTree as et
34

45

@@ -121,3 +122,6 @@ def generate_svg_wheel(packages, total):
121122
with open('wheel.svg', 'w') as svg:
122123
svg.write(HEADERS)
123124
svg.write(et.tostring(wheel))
125+
126+
# Install with: npm install svgexport -g
127+
os.system('svgexport wheel.svg wheel.png 32:32')

0 commit comments

Comments
 (0)