Skip to content

feat: add iconPacksNamesAndUrls option in order to be able to use icons outside unpkg#954

Merged
MindaugasLaganeckas merged 2 commits intomermaid-js:masterfrom
lmondeil1:feature/allowNotOnlyUnkpgIcons
Sep 14, 2025
Merged

feat: add iconPacksNamesAndUrls option in order to be able to use icons outside unpkg#954
MindaugasLaganeckas merged 2 commits intomermaid-js:masterfrom
lmondeil1:feature/allowNotOnlyUnkpgIcons

Conversation

@lmondeil1
Copy link

@lmondeil1 lmondeil1 commented Aug 6, 2025

Description

iconPacks option allows only to target icons stored in unpkg
There are icons available outside of unpkg (as the ones used on mermaid chart playground)

added iconPacksNamesAndUrls option that looks like iconPacks option but gives the opportunity to use any valid Iconify json file (example : azure**#**https://raw.githubusercontent.com/NakayamaKento/AzureIcons/refs/heads/main/icons.json)

@MindaugasLaganeckas
Copy link
Member

Thank you for your PR. Please, add a simple end-to-end test here https://github.com/mermaid-js/mermaid-cli/blob/master/run-tests.sh, which will demonstrate the usage of the new option. Just have a look how other similar tests have been created. After that I will be happy to accept your PR.

@lmondeil1
Copy link
Author

Great !
run-tests.sh has been updated as mentioned.
Thank you for this really useful tool.

@lmondeil1 lmondeil1 force-pushed the feature/allowNotOnlyUnkpgIcons branch from 42d0fc1 to a5e188c Compare August 19, 2025 14:44
@lmondeil1
Copy link
Author

Hello @MindaugasLaganeckas. Is there something still missing on what I've done?
This pull request would be really helpful in my everyday job :)

@MindaugasLaganeckas MindaugasLaganeckas merged commit 524414b into mermaid-js:master Sep 14, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants