mirror of
https://github.com/jongracecox/anybadge.git
synced 2026-01-05 20:03:08 +01:00
Fix README code used to generate color examples table
This commit is contained in:
@@ -163,7 +163,7 @@ This table was generated with the following code:
|
||||
print("""| Color Name | Hex Code | Example |
|
||||
| ---------- | -------- | ------- |""")
|
||||
for color, hex in sorted(anybadge.COLORS.items()):
|
||||
file = 'examples/color_' + color + '.svg'
|
||||
file = 'https://cdn.rawgit.com/jongracecox/anybadge/master/examples/color_' + color + '.svg'
|
||||
anybadge.Badge(label='Color', value=color, default_color=color).write_badge(file, overwrite=True)
|
||||
print("| {color} | {hex} |  |".format(color=color, hex=hex.upper(), file=file))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user