1
0
Fork 0

🔀 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>
This commit is contained in:
bgh-github 2023-04-19 01:34:03 +10:00 committed by GitHub
parent 4eef36b26a
commit c4bfa50a72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -7,7 +7,7 @@ path = root / "../ICONS.md"
def generate_img_tag(file):
return f'<img src="png/{file.name}" alt="{file.stem}" height="50">'
return f'<a href="https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/{file.name}"><img src="https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/{file.name}" alt="{file.stem}" height="50"></a>'
imgs = sorted(Path("./png").glob("*.png"))