From c4bfa50a72414ef95cd40e0d50eede616a0820e8 Mon Sep 17 00:00:00 2001
From: bgh-github <99472455+bgh-github@users.noreply.github.com>
Date: Wed, 19 Apr 2023 01:34:03 +1000
Subject: [PATCH] :twisted_rightwards_arrows: Merge Favour CDN image URLs over
GitHub (#372)
* Anchor each icon image to CDN
Signed-off-by: bgh-github <99472455+bgh-github@users.noreply.github.com>
* Adjust icon download instructions/examples
Signed-off-by: bgh-github <99472455+bgh-github@users.noreply.github.com>
---------
Signed-off-by: bgh-github <99472455+bgh-github@users.noreply.github.com>
---
README.md | 8 ++++----
config/ci.py | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 8858f18..b6ee252 100644
--- a/README.md
+++ b/README.md
@@ -44,18 +44,18 @@ There are many Dashboards available that you can use with Dashboard Icons. Here
**Tip!** You can access Dashboard Icons online, faster, by using `https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/example.png`. Just replace `example` with the name of the icon!
-To download an icon, simply `Right click > Save image`.
+To download an icon from the [icons page](#-icons), simply `Right click > Save link as`.
For non-desktop operating systems or people who prefer to use the terminal:
```sh
-$ curl https://raw.githubusercontent.com/walkxcode/dashboard-icons/master/png/example.png > example.png
+$ curl -O https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/example.png
```
or
```sh
-$ wget https://raw.githubusercontent.com/walkxcode/dashboard-icons/master/png/example.png -O example.png
+$ wget https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/example.png
```
## 🎨 Icons
@@ -64,7 +64,7 @@ $ wget https://raw.githubusercontent.com/walkxcode/dashboard-icons/master/png/ex
- 💻 System slowdowns.
- 🌐 Browser crashes.
-*If your device cannot handle loading more than 1000 images, we advice to not go to this page.*
+*If your device cannot handle loading more than 1000 images, we advise to not go to this page.*
➡️ Click [**here**](ICONS.md) to display all icons.
diff --git a/config/ci.py b/config/ci.py
index 5573b01..aa32234 100644
--- a/config/ci.py
+++ b/config/ci.py
@@ -7,7 +7,7 @@ path = root / "../ICONS.md"
def generate_img_tag(file):
- return f''
+ return f''
imgs = sorted(Path("./png").glob("*.png"))