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

This widget could not be displayed.

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
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

460 views 6 6
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