Better syntax for using Stdlib icons?

0 votes
asked Nov 19, 2018 in Question / help by anonymous
The inclusion of font-awesome, dev icons etc in the Stdlib is awesome, but is there any way to avoid having to include **each individual icon** and instead include **all** Stdlib icons by default?

This makes it rather painful & slow to create diagrams as you have to first lookup the icon you want, then include it, then use the icon’s macro.

Instead since these are all in stdlib anyway surely you should be able to use the macro after including the relevant ‘common.puml.?

1 Answer

+1 vote
answered Nov 20, 2018 by plantuml (295,000 points)
Thanks for your suggestion.

About stdlib, the idea is to let to people the management of this library (that is, you :-). We are just packing everything into the distributed jar file but we do not modify it.

Since stdlib is really open sourced, you can clone it from https://github.com/plantuml/plantuml-stdlib and add some common-full.puml files that would include *all* existing icons (ok probably you are not going to manually create this file and write some script that automatically generates it).

I suggest that you create some new files common-full.puml rather than modify current common.puml file since this may break compatibility with existing diagrams.

Then you do a pull request and we integrate those new files into https://github.com/plantuml/plantuml-stdlib and pack them in the jar file.

Does it sound good ?
...