plantuml - include stylesheet

We are Confluence 5.9.12 with PlantUML plugin 5.19

We are trying to figure out how/where to include a stylesheet in our diagrams.

Currently we have the stylesheet saved in google docs and are using an include statement to include the URL in the PlantUML diagram. What we want to do is have the style sheet in Confluence, but can 't figure out how to include the stylesheet in the diagram from within Confluence.

 

Any help would be appreciated

1 answer

You can store the style sheet in Confluence either as a page or as an attachment. The syntax how to do that is documented here.

Sample:

Create a empty page e.g. "Skins" and add an attachment with the name "skin.iwsd" and the following content:

skinparam DefaultFontName "Neucha"
skinparam BackgroundColor transparent
skinparam Shadowing false
skinparam Handwritten true
skinparam Note {
 BorderColor #303030
 BackgroundColor #CEEEFE
 FontSize 12
}

Full skin sample can be found here: https://github.com/rbkmoney/plantuml-toolset/blob/master/skin.iwsd

Then you can include that style sheet (skin) in your PlantUML diagram using the !include directive:

!include "Skins^skin.iwsd"

...

 

If you want to include the style sheet on every diagram you can use the "Common Header" feature in the plugins configuration (Confluence administration -> Add-ons -> Confluence PlantUML Plugin -> Configure).

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,856 views 27 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you