Looking for those available on simple-icons
npm package?
slug | description | source | CDN URL1 |
---|---|---|---|
hackclub-arcade |
Heidi the Hakkuun | Hack Club Slack | |
hcb |
HCB logo | https://hcb.hackclub.com/branding | https://meta.cdn.lorebooks.wiki/branding/thirdparty/hackclub/hcb-icon-icon-original.svg |
hcb-dark |
HCB dark logo | https://hcb.hackclub.com/branding | https://meta.cdn.lorebooks.wiki/branding/thirdparty/hackclub/hcb-icon-icon-dark.svg |
- Make sure the image or SVG in question is downloaded locally.
- Run
cat path/to/file | base64 --wrap=0
and copy the encoded string to clipboard. - Open the
lib/cli/kv-seed.json
file. - In
logos
object, add a new entry at the bottom with the following syntax:
"logo-name": "<base64 encoded string here>"
- Save and commit. If you don't have access to the decryption keys at
.env.keys
, an admin will rundotenvx run -f .env.prod -- deno task seed
for you.
Via utils/badges-admins.ts
CLI
This is only reserved for admins with access to the backing KV in Deno Deploy via
the private keys on .env.keys
and using dotenvx
.
- Make sure the image or SVG in question is downloaded locally.
- Run
cat path/to/file | base64 --wrap=0
and copy the encoded string to clipboard. - Run
dotenvx run -f .env.prod -- deno task icons:add <icon-name> <base64EncodedData>
and wait for KV changes to propagate.
Footnotes
-
Note that the CDN URLs point into our Storj DCS bucket
lorebooks-wiki-cdn
atmeta
directory if you need to reproduce the base64 encoding for self-hosting. ↩