Created
          December 27, 2015 20:15 
        
      - 
      
- 
        Save keynslug/4cb2f019689fb9a16d9e to your computer and use it in GitHub Desktop. 
     Make images of PlantUML diagrams
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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 | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <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> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | SOURCES = $(wildcard ./*.wsd) | |
| TARGETS = $(patsubst %.wsd,%.$(FORMAT),$(SOURCES)) | |
| FORMAT ?= svg | |
| JAR ?= ~/ws/plantuml/plantum.jar | |
| STYLE ?= style.isvg | |
| all: $(TARGETS) | |
| clean: | |
| rm -f $(TARGETS) | |
| %.svg: %.wsd | |
| cat $^ \ | |
| | java -jar $(JAR) -tsvg -pipe \ | |
| | xmllint --format - \ | |
| | sed -e "/<g>/r $(STYLE)" \ | |
| > $@ | |
| %.png: %.wsd | |
| $(MAKE) $*.svg | |
| mogrify -antialias -density 240 -format png $*.svg | |
| rm -vf $*.svg | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment