mirror of
https://github.com/valitydev/plantuml-toolset.git
synced 2024-11-06 01:45:18 +00:00
Initial commit
This commit is contained in:
commit
1e1d42e062
37
skin.iwsd
Normal file
37
skin.iwsd
Normal file
@ -0,0 +1,37 @@
|
||||
skinparam DefaultFontName "Neucha"
|
||||
skinparam BackgroundColor transparent
|
||||
skinparam Shadowing false
|
||||
skinparam Handwritten true
|
||||
|
||||
skinparam Note {
|
||||
BorderColor #303030
|
||||
BackgroundColor #CEEEFE
|
||||
FontSize 12
|
||||
}
|
||||
|
||||
skinparam Sequence {
|
||||
TitleFontSize 12
|
||||
TitleFontColor #606060
|
||||
ArrowColor #303030
|
||||
DividerBackgroundColor #EEEEEE
|
||||
GroupBackgroundColor #EEEEEE
|
||||
LifeLineBackgroundColor white
|
||||
LifeLineBorderColor #303030
|
||||
ParticipantBackgroundColor #FEFEFE
|
||||
ParticipantBorderColor #303030
|
||||
BoxLineColor #303030
|
||||
BoxBackgroundColor #DDDDDD
|
||||
}
|
||||
|
||||
skinparam Title {
|
||||
FontSize 12
|
||||
FontColor #606060
|
||||
}
|
||||
|
||||
skinparam Activity {
|
||||
ArrowColor #303030
|
||||
ArrowFontSize 10
|
||||
BarColor #F0A0A0
|
||||
BorderColor #303030
|
||||
BackgroundColor #DEEEFE
|
||||
}
|
8
style.isvg
Normal file
8
style.isvg
Normal file
@ -0,0 +1,8 @@
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'Neucha';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Neucha'), url(https://fonts.gstatic.com/s/neucha/v8/kum-AEgHOi-eoGXxKfEluA.ttf) format('truetype');
|
||||
}
|
||||
</style>
|
41
wsd.mk
Normal file
41
wsd.mk
Normal file
@ -0,0 +1,41 @@
|
||||
FORMAT ?= svg
|
||||
SOURCES = $(wildcard ./*.wsd)
|
||||
TARGETS = $(patsubst %.wsd,%.$(FORMAT),$(SOURCES))
|
||||
STYLE ?= style.isvg
|
||||
|
||||
.PHONY: all clean toolset force
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS)
|
||||
|
||||
%.svg: %.wsd
|
||||
cat $< \
|
||||
| plantuml -tsvg -pipe \
|
||||
| xmllint --format - \
|
||||
| sed -e "/<g>/r $(STYLE)" \
|
||||
> $@
|
||||
@$(MAKE) FILENAME=$@ validate
|
||||
|
||||
%.png: %.wsd
|
||||
$(MAKE) $*.svg
|
||||
mogrify -antialias -density 240 -format png $*.svg
|
||||
rm -vf $*.svg
|
||||
@$(MAKE) FILENAME=$@ validate
|
||||
|
||||
validate:
|
||||
test -s $(FILENAME) || { rm $(FILENAME); exit 1; }
|
||||
|
||||
install-toolset: plantuml.tool xmllint.tool mogrify.tool
|
||||
%.tool: force
|
||||
$(MAKE) $*.tool.$(uname -s)
|
||||
plantuml.tool.Darwin:
|
||||
brew install plantuml
|
||||
mogrify.tool.Darwin:
|
||||
brew install imagemagick
|
||||
xmllint.tool.Darwin:
|
||||
true
|
||||
|
||||
force:
|
||||
@true
|
Loading…
Reference in New Issue
Block a user