mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2024-11-10 07:27:21 +01:00
🔀 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:
parent
4eef36b26a
commit
c4bfa50a72
@ -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.
|
||||
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user