C2 Platform PlantUML Repository
Categories:
GitLab: c2platform/c2/plantuml
This repository contains PlantUML (puml
) files used for the
c2platform.org
website.
Usage
Using C4-PlantUML
If you want to use C4-PlantUML , include c4.puml in your PlantUML files by using the following line:
!include https://gitlab.com/c2platform/c2/plantuml/-/raw/master/c4.puml?ref_type=heads
Using Sprites Only
If you only want to use the sprites, include sprites.puml with the following line:
!include https://gitlab.com/c2platform/c2/plantuml/-/raw/master/sprites.puml?ref_type=heads
Development
This repository includes scripts for generating PlantUML (puml
) files based on
svg
files.
Scripts
- icon-watcher-converter.sh
: Uses
inotifywait
to detect changes and automatically convertsvg
topng
,png
topuml
, and then update the sprites.puml file. - svg2png.py
: Converts
svg
files topng
. - png2puml.py
: Converts
png
files topuml
.
Running the Converter
To start the icon watcher converter:
./scripts/icon-watcher-converter.sh
After starting icon-watcher-converter.sh
, you can drop svg
files into the
icons/svg
directory, and the files will be generated and updated
automatically.
Naming Conventions
svg
files should use underscores (_
) instead of hyphens (-
) in their names.- For ease of use, it is recommended to use lowercase letters and separate words
with underscores (
_
).
Preview
This section provides a preview of the available PlantUML sprites in this repository.
Using Sprites
You can use the sprites with the $sprite
attribute as shown below:
System(ide_min50_system, "ide_min50", "ide_min50", $sprite="ide_min50")
Using Tags
You can also use tags:
AddSystemTag("GIS_System", $sprite="arcgis", $legendText="GIS platform")
Feedback
Was deze pagina nuttig?
Fijn om te horen! Vertel ons alstublieft hoe we kunnen verbeteren.
Jammer om dat te horen. Vertel ons alstublieft hoe we kunnen verbeteren.